fix crash

This commit is contained in:
def 2014-01-06 20:16:04 +01:00
parent 37badd724b
commit 874e716fdb

View file

@ -197,7 +197,7 @@ void CGameWorld::UpdatePlayerMaps()
continue; 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 // always send the player himself