1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

[Client] Ignore WorldRegionAuthority packets that have an empty region

This commit is contained in:
David Cernat 2018-07-21 18:28:31 +03:00
parent 99e64bdcd7
commit 3944c8aec6

View file

@ -19,7 +19,8 @@ namespace mwmp
{ {
MWBase::World *world = MWBase::Environment::get().getWorld(); MWBase::World *world = MWBase::Environment::get().getWorld();
if (Misc::StringUtils::ciEqual(worldstate.authorityRegion, world->getPlayerPtr().getCell()->getCell()->mRegion)) if (!worldstate.authorityRegion.empty() && Misc::StringUtils::ciEqual(worldstate.authorityRegion,
world->getPlayerPtr().getCell()->getCell()->mRegion))
{ {
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s about %s", strPacketID.c_str(), worldstate.authorityRegion.c_str()); LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Received %s about %s", strPacketID.c_str(), worldstate.authorityRegion.c_str());