Browse Source

verbose bug fix

Joe Shochet 23 years ago
parent
commit
9e78047e75
1 changed files with 2 additions and 1 deletions
  1. 2 1
      direct/src/task/Task.py

+ 2 - 1
direct/src/task/Task.py

@@ -279,6 +279,7 @@ class DoLaterList(list):
             else:
             else:
                 lo = mid+1
                 lo = mid+1
         list.insert(self, lo, task)
         list.insert(self, lo, task)
+        return lo
 
 
 class TaskManager:
 class TaskManager:
 
 
@@ -381,7 +382,7 @@ class TaskManager:
         task.setStartTimeFrame(currentTime, self.currentFrame)
         task.setStartTimeFrame(currentTime, self.currentFrame)
         # Cache the time we should wake up for easier sorting
         # Cache the time we should wake up for easier sorting
         task.wakeTime = task.starttime + task.delayTime
         task.wakeTime = task.starttime + task.delayTime
-        self.doLaterList.add(task)
+        index = self.doLaterList.add(task)
         if self.fVerbose:
         if self.fVerbose:
             # Alert the world, a new task is born!
             # Alert the world, a new task is born!
             messenger.send('TaskManager-spawnDoLater',
             messenger.send('TaskManager-spawnDoLater',