Fix get client data func to check if client null

This commit is contained in:
Vortrex
2020-12-21 09:27:25 -06:00
parent 07156d84ac
commit ec92b9aa4d

View File

@@ -1148,7 +1148,10 @@ function getGameAreas(gameId) {
// ---------------------------------------------------------------------------
function getClientData(client) {
return getServerData().clients[client.index];
if(client != null) {
return getServerData().clients[client.index];
}
return false;
}
// ---------------------------------------------------------------------------