Mercurial > parpg-core
diff src/parpg/objects/action.py @ 175:c50a7adeae85
Changed DropItemFromContainerAction to work with components.
author | KarstenBock@gmx.net |
---|---|
date | Sun, 09 Oct 2011 20:50:01 +0200 |
parents | 7f03365c098d |
children |
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):