# HG changeset patch # User KarstenBock@gmx.net # Date 1318164227 -7200 # Node ID 658e06a20fa5d2d1cd389a161a30dd15fade1ef2 # Parent b46afa76d2efb37f4537fc6a5d2d9de36cbd574e ReplaceItem in UseAction will now delete the old object from the database and the world. diff -r b46afa76d2ef -r 658e06a20fa5 objects/action.py --- a/objects/action.py Sun Oct 09 14:39:02 2011 +0200 +++ b/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()