From e2e197d84a63fba15b9ed6b3d20127c457992664 Mon Sep 17 00:00:00 2001 From: Koncord Date: Fri, 19 Jan 2018 15:45:04 +0800 Subject: [PATCH] [Client] Fix getting element of shared_ptr by reference --- apps/openmw/mwmp/Cell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmp/Cell.cpp b/apps/openmw/mwmp/Cell.cpp index 256fa773c..fc3a3b6de 100644 --- a/apps/openmw/mwmp/Cell.cpp +++ b/apps/openmw/mwmp/Cell.cpp @@ -284,7 +284,7 @@ void Cell::readCellChange(ActorList& actorList) std::string mapIndex = Main::get().getCellController()->generateMapIndex(baseActor); // Is a packet mistakenly moving the actor to the cell it's already in? If so, ignore it - if (Misc::StringUtils::ciEqual(getDescription(), baseActor.cell.getDescription())) + if (Misc::StringUtils::ciEqual(getDescription(), baseActor->cell.getDescription())) { LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "Server says DedicatedActor %s moved to %s, but it was already there", mapIndex.c_str(), getDescription().c_str());