changeset 167:097782ae9c77

createItem now calls UpdateObjectDB after it created the item.
author KarstenBock@gmx.net
date Sun, 09 Oct 2011 14:03:25 +0200
parents 7f044776de60
children 704145b96171
files src/parpg/gamemodel.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/parpg/gamemodel.py	Sun Oct 09 13:31:08 2011 +0200
+++ b/src/parpg/gamemodel.py	Sun Oct 09 14:03:25 2011 +0200
@@ -508,6 +508,7 @@
         item = createEntity(item_data, identifier, world, None)
         item.containable.item_type = item_type
         self.game_state.addObject(identifier, None, item)
+        self.updateObjectDB(world)
         return item
 
     def placeAgents(self, world):