From a4e45de6cab2bf08e12bdb3471a3fcec1774d907 Mon Sep 17 00:00:00 2001 From: Koncord Date: Thu, 27 Apr 2017 11:25:11 +0800 Subject: [PATCH] [General] Fix playersCount --- components/openmw-mp/Master/ProxyMasterPacket.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/openmw-mp/Master/ProxyMasterPacket.hpp b/components/openmw-mp/Master/ProxyMasterPacket.hpp index a93bb8d17..d55b385e1 100644 --- a/components/openmw-mp/Master/ProxyMasterPacket.hpp +++ b/components/openmw-mp/Master/ProxyMasterPacket.hpp @@ -68,7 +68,9 @@ namespace mwmp else server.players.clear(); - int playersCount = server.GetPlayers(); + int playersCount = server.players.size(); + packet->RW(playersCount, send); + while (playersCount--) { string player;