diff objects/action.py @ 145:46570c1ee4ca

Changed DropItemFromContainerAction to work with components.
author KarstenBock@gmx.net
date Sun, 09 Oct 2011 20:50:01 +0200
parents 658e06a20fa5
children
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):