index out of bounds fix for npcs
This commit is contained in:
parent
a64c916637
commit
45b73b7311
@ -36,7 +36,9 @@ stock AC_RepairVehicle( vehicleid )
|
||||
/* ** Hooks ** */
|
||||
hook OnPlayerDisconnect( playerid, reason )
|
||||
{
|
||||
if ( 0 <= playerid < MAX_PLAYERS ) {
|
||||
p_DamageSpamCount{ playerid } = 0;
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user