Commit 522ca8d9 authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Ioannis Papagiannopoulos

correction in CoreObject, signalGiver

parent ab83067e
......@@ -282,7 +282,7 @@ class CoreObject(Process):
activeEntity.hot = True
#=======================================================================
# # TESTING
# print now(), activeEntity.id, "got into "+self.id
# print now(), activeEntity.name, "got into "+self.id
#=======================================================================
# update wipStatList
if self.gatherWipStat:
......@@ -333,7 +333,7 @@ class CoreObject(Process):
def signalGiver(self):
activeObject=self.getActiveObject()
possibleGivers=[]
for object in [x for x in activeObject.next if x.haveToDispose(activeObject)]:
for object in [x for x in activeObject.previous if x.haveToDispose(activeObject)]:
possibleGivers.append(object)
if possibleGivers:
activeObject.giver=activeObject.selectGiver(possibleGivers)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment