diff src/parpg/objects/action.py @ 155:7214224b8d83

Fixed that items in the player characters inventory could not be dropped.
author KarstenBock@gmx.net
date Fri, 07 Oct 2011 14:15:06 +0200
parents 6e1eb964a6e5
children db6403c1a7a1
line wrap: on
line diff
--- a/src/parpg/objects/action.py	Thu Oct 06 16:08:00 2011 +0200
+++ b/src/parpg/objects/action.py	Fri Oct 07 14:15:06 2011 +0200
@@ -435,6 +435,7 @@
         self.model.deleteObject(identifier)
         self.model.addAgent(map_name, {identifier: agent_values})
         self.model.placeAgents(self.item.entity.world)
+        self.model.updateObjectDB(self.item.entity.world)
         super(DropItemAction, self).execute()
         
 class DropItemFromContainerAction(DropItemAction):