From 874e716fdb408565d40ae49c3001575478c5b728 Mon Sep 17 00:00:00 2001 From: def Date: Mon, 6 Jan 2014 20:16:04 +0100 Subject: [PATCH] fix crash --- src/game/server/gameworld.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/game/server/gameworld.cpp b/src/game/server/gameworld.cpp index 9b3b49fd2..4bf8795ad 100644 --- a/src/game/server/gameworld.cpp +++ b/src/game/server/gameworld.cpp @@ -197,7 +197,7 @@ void CGameWorld::UpdatePlayerMaps() continue; } - dist[j].first = distance(GameServer()->m_apPlayers[i]->GetCharacter()->m_Pos, GameServer()->m_apPlayers[j]->GetCharacter()->m_Pos); + dist[j].first = distance(GameServer()->m_apPlayers[i]->m_ViewPos, GameServer()->m_apPlayers[j]->GetCharacter()->m_Pos); } // always send the player himself