diff src/parpg/behaviours/base.py @ 69:ad75fa042b99

Changes to make PARPG "runable" with grease. (With the correct modified assets)
author KarstenBock@gmx.net
date Tue, 06 Sep 2011 15:22:51 +0200
parents d5491eb9e3e4
children 58661f5b2f6b
line wrap: on
line diff
--- a/src/parpg/behaviours/base.py	Tue Sep 06 15:21:36 2011 +0200
+++ b/src/parpg/behaviours/base.py	Tue Sep 06 15:22:51 2011 +0200
@@ -53,7 +53,7 @@
         if self.agent is not None:
             self.agent.removeActionListener(self)
             
-        self.agent = layer.getInstance(self.parent.ID)
+        self.agent = layer.getInstance(self.parent.fifeagent.identifier)
         self.agent.addActionListener(self)
         self.state = _AGENT_STATE_NONE
         self.idle_counter = 1