From 3944c8aec6f1f553353b7568bc62edc0b1e25069 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Sat, 21 Jul 2018 18:28:31 +0300 Subject: [PATCH] [Client] Ignore WorldRegionAuthority packets that have an empty region --- .../processors/worldstate/ProcessorWorldRegionAuthority.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwmp/processors/worldstate/ProcessorWorldRegionAuthority.hpp b/apps/openmw/mwmp/processors/worldstate/ProcessorWorldRegionAuthority.hpp index f61d74a96..c6ad081a7 100644 --- a/apps/openmw/mwmp/processors/worldstate/ProcessorWorldRegionAuthority.hpp +++ b/apps/openmw/mwmp/processors/worldstate/ProcessorWorldRegionAuthority.hpp @@ -19,7 +19,8 @@ namespace mwmp { 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());