changeset 145:46570c1ee4ca

Changed DropItemFromContainerAction to work with components.
author KarstenBock@gmx.net
date Sun, 09 Oct 2011 20:50:01 +0200
parents 86b9b181ad1c
children abfeac863dd6
files objects/action.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/objects/action.py	Sun Oct 09 19:24:37 2011 +0200
+++ b/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):