diff --git a/apps/openmw/mwmp/CellController.cpp b/apps/openmw/mwmp/CellController.cpp index f0033bf7f..baf3110ee 100644 --- a/apps/openmw/mwmp/CellController.cpp +++ b/apps/openmw/mwmp/CellController.cpp @@ -105,7 +105,7 @@ LocalActor *CellController::getLocalActor(MWWorld::Ptr ptr) std::string actorIndex = generateMapIndex(ptr); std::string cellIndex = localActorsToCells.at(actorIndex); - cellsActive.at(cellIndex)->getLocalActor(actorIndex); + return cellsActive.at(cellIndex)->getLocalActor(actorIndex); } std::string CellController::generateMapIndex(MWWorld::Ptr ptr)