1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 16:49:54 +00:00

[Client] Use boolean var instead requestQuit or throwing runtime_error

This commit is contained in:
Koncord 2017-05-03 14:52:32 +08:00
parent e0139c33b3
commit 93edd67681

View file

@ -386,10 +386,7 @@ void Networking::preInit(std::vector<std::string> &content, Files::Collections &
{
LOG_MESSAGE_SIMPLE(Log::LOG_ERROR, comparePluginsMonospaced(checksums, checksumsResponse, true).c_str());
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "tes3mp", errmsg.c_str(), 0);
#if defined(__WINDOWS)
throw std::runtime_error("Shutting down.");
#endif
MWBase::Environment::get().getStateManager()->requestQuit();
connected = false;
}
}