On second thought, not redundant

develop
Josh Cooper 2021-08-28 13:09:13 -07:00 committed by Myk
parent 6ace4b2cf8
commit 20b42145c1
1 changed files with 2 additions and 1 deletions

@ -373,7 +373,8 @@ void findAndAssignInvasionJob(color_ostream& out, void* tickTime) {
return;
}
//this line is actually redundant now: EventManager::unregister(EventManager::EventType::TICK, findJobTickHandler, plugin_self);
//we're going to unregister just in case this function has been called 20 times or something.
EventManager::unregister(EventManager::EventType::TICK, findJobTickHandler, plugin_self);
EventManager::registerTick(findJobTickHandler, 1, plugin_self);
if ( fringe.empty() ) {