changeset 175:c50a7adeae85

Changed DropItemFromContainerAction to work with components.
author KarstenBock@gmx.net
date Sun, 09 Oct 2011 20:50:01 +0200
parents ee4c1fe78be1
children 94857239b890
files src/parpg/objects/action.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/parpg/objects/action.py	Sun Oct 09 19:24:37 2011 +0200
+++ b/src/parpg/objects/action.py	Sun Oct 09 20:50:01 2011 +0200
@@ -453,7 +453,7 @@
 
     def execute(self):
         super(DropItemFromContainerAction, self).execute()
-        self.item.in_container.takeItem(self.item)
+        container.remove_item(self.item.container, self.item.slot)
         self.container_gui.updateImages()
         
 class BrewBeerAction(Action):