changeset 40:be9a0e9e3ac2

Backed out changeset: bd1e3b743518
author KarstenBock@gmx.net
date Wed, 10 Aug 2011 21:07:06 +0200
parents 8b3890f17f94
children 74f09d6417f4
files src/parpg/systems/container.py
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/parpg/systems/container.py	Wed Aug 03 22:57:52 2011 +0200
+++ b/src/parpg/systems/container.py	Wed Aug 10 21:07:06 2011 +0200
@@ -48,10 +48,7 @@
                         containable.current_container = new_container
                         old_containable = new_container.children.pop(new_slot)
                         old_containable.current_container = drag_container
-                        drag_container.children.append(old_containable)
-                    else:
-                        new_container.append(containable)
-                        containable.current_container = new_container
+                        drag_container.children = [old_containable]
                 else:
                     for listener in self.on_bulk_to_big:
                         listener(bulk, new_container.max_bulk)