Fixed Xbox 360 crash
This commit is contained in:
@@ -1298,9 +1298,9 @@ void Minecraft::run_middle()
|
||||
INetworkPlayer *pHostPlayer = g_NetworkManager.GetHostPlayer();
|
||||
|
||||
#ifdef _XBOX
|
||||
PlayerUID xuid=((NetworkPlayerXbox *)pHostPlayer)->GetUID();
|
||||
PlayerUID xuid=((pHostPlayer != NULL) ? ((NetworkPlayerXbox *)pHostPlayer)->GetUID() : 0);
|
||||
#else
|
||||
PlayerUID xuid=pHostPlayer->GetUID();
|
||||
PlayerUID xuid=(pHostPlayer != NULL) ? pHostPlayer->GetUID() : 0;
|
||||
#endif
|
||||
|
||||
if(app.IsInBannedLevelList(i,xuid,app.GetUniqueMapName()))
|
||||
|
||||
Reference in New Issue
Block a user