mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-08 11:44:11 +00:00
fix: nullptr access for logger in master (#1380)
* fix nullptr access for logger * fix nullptr access for logger fix no save on crash * Update MasterServer.cpp
This commit is contained in:
@@ -1291,14 +1291,17 @@ void WorldShutdownProcess(uint32_t zoneId) {
|
||||
}
|
||||
|
||||
void WorldShutdownSequence() {
|
||||
bool shouldShutdown = Game::ShouldShutdown() || worldShutdownSequenceComplete;
|
||||
Game::lastSignal = -1;
|
||||
#ifndef DARKFLAME_PLATFORM_WIN32
|
||||
if (Game::ShouldShutdown() || worldShutdownSequenceComplete)
|
||||
if (shouldShutdown)
|
||||
#endif
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Game::logger) return;
|
||||
|
||||
LOG("Zone (%i) instance (%i) shutting down outside of main loop!", Game::server->GetZoneID(), instanceID);
|
||||
WorldShutdownProcess(Game::server->GetZoneID());
|
||||
FinalizeShutdown();
|
||||
|
Reference in New Issue
Block a user