From 377aa9b6c989efd441ba6f1ee5b433c27ac3ab24 Mon Sep 17 00:00:00 2001 From: David Cernat Date: Tue, 2 May 2017 03:39:00 +0300 Subject: [PATCH] [Server] Refresh cellActorList's count after removing Actors from it --- apps/openmw-mp/Cell.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/openmw-mp/Cell.cpp b/apps/openmw-mp/Cell.cpp index de726e0bf..20f0e6eb1 100644 --- a/apps/openmw-mp/Cell.cpp +++ b/apps/openmw-mp/Cell.cpp @@ -151,6 +151,8 @@ void Cell::removeActors(const mwmp::BaseActorList *newActorList) if (!foundActor) it++; } + + cellActorList.count = cellActorList.baseActors.size(); } mwmp::BaseActorList *Cell::getActorList()