mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-25 05:00:23 +01:00
Use the entity number rather than the client's clientNum
The number must match the entity number parameter used in G_GetEntity(). This fixes a crash caused by gclient struct being reset when a client reconnects to the same player slot
This commit is contained in:
1 file changed
+1
-1
@@ -950,7 +950,7 @@ void DM_Manager::Score(Player *player)
|
||||
continue;
|
||||
}
|
||||
|
||||
iPlayerList[j] = currentPlayer->client->ps.clientNum;
|
||||
iPlayerList[j] = currentPlayer->edict - g_entities;
|
||||
|
||||
j++;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user