EventManager should use a CoreSuspender just in case.

develop
expwnent 2013-05-25 11:50:43 -04:00
parent 5cca0b84a3
commit bcaaa72387
1 changed files with 2 additions and 0 deletions

@ -189,6 +189,8 @@ void DFHack::EventManager::manageEvents(color_ostream& out) {
if ( !gameLoaded ) { if ( !gameLoaded ) {
return; return;
} }
CoreSuspender suspender;
uint32_t tick = DFHack::World::ReadCurrentYear()*ticksPerYear uint32_t tick = DFHack::World::ReadCurrentYear()*ticksPerYear
+ DFHack::World::ReadCurrentTick(); + DFHack::World::ReadCurrentTick();
/*if ( tick - lastTick > 1 ) { /*if ( tick - lastTick > 1 ) {