Fix get client data func to check if client null
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user