Fix potential crash

This commit is contained in:
Michael Cook (mackal) 2016-08-13 15:19:10 -04:00
parent 97dc0a84dd
commit 488c4941d2

View File

@ -88,7 +88,7 @@ void ZSList::Process() {
Process(); Process();
CatchSignal(2); CatchSignal(2);
} }
if(reminder && reminder->Check()){ if(reminder && reminder->Check() && shutdowntimer){
SendEmoteMessage(0,0,0,15,"<SYSTEMWIDE MESSAGE>:SYSTEM MSG:World coming down, everyone log out now. World will shut down in %i minutes...", ((shutdowntimer->GetRemainingTime()/1000) / 60)); SendEmoteMessage(0,0,0,15,"<SYSTEMWIDE MESSAGE>:SYSTEM MSG:World coming down, everyone log out now. World will shut down in %i minutes...", ((shutdowntimer->GetRemainingTime()/1000) / 60));
} }
LinkedListIterator<ZoneServer*> iterator(list); LinkedListIterator<ZoneServer*> iterator(list);