# HG changeset patch # User KarstenBock@gmx.net # Date 1318164227 -7200 # Node ID 7f03365c098d70d78e0a04d1f044728f03f53e90 # Parent 371b17bc911371126debeeddcffe1bcfa6a521a1 ReplaceItem in UseAction will now delete the old object from the database and the world. diff -r 371b17bc9113 -r 7f03365c098d src/parpg/objects/action.py --- a/src/parpg/objects/action.py Sun Oct 09 14:39:02 2011 +0200 +++ b/src/parpg/objects/action.py Sun Oct 09 14:43:47 2011 +0200 @@ -399,6 +399,8 @@ container.put_item(containable.container, new_item.containable, containable.slot) + self.model.deleteObject(self.item.general.identifier) + self.item.delete() self.view.hud.inventory.updateImages() super(UseAction, self).execute()