diff options
Diffstat (limited to 'engines/mutationofjb/tasks/taskmanager.cpp')
-rw-r--r-- | engines/mutationofjb/tasks/taskmanager.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/mutationofjb/tasks/taskmanager.cpp b/engines/mutationofjb/tasks/taskmanager.cpp index 981654981f..7fbf64dc9b 100644 --- a/engines/mutationofjb/tasks/taskmanager.cpp +++ b/engines/mutationofjb/tasks/taskmanager.cpp @@ -40,7 +40,9 @@ void TaskManager::removeTask(Task *task) { void TaskManager::update() { for (Tasks::const_iterator it = _tasks.begin(); it != _tasks.end(); ++it) { - (*it)->update(); + if ((*it)->getState() == Task::RUNNING) { + (*it)->update(); + } } } |