Commit 124a6fa2 authored by Hengwen Zhang's avatar Hengwen Zhang
Browse files

Fix a small bug that task runners are not correctly registered

parent eac3bfb7
......@@ -169,7 +169,7 @@ public class Simulator implements ISimulator, Updatable {
@Override
public void registerTaskRunner(SimulationObject obj, TaskRunner runner) {
SimulatorState state = (SimulatorState) obj.state;
state.updatableId = taskRunners.size();
state.taskRunnerId = taskRunners.size();
taskRunners.add(runner);
}
......@@ -183,4 +183,8 @@ public class Simulator implements ISimulator, Updatable {
System.exit(-1);
}
}
public Vector<Updatable> getUpdatables() {
return updatables;
}
}
\ No newline at end of file
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