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 ** */
|
/* ** Hooks ** */
|
||||||
hook OnPlayerDisconnect( playerid, reason )
|
hook OnPlayerDisconnect( playerid, reason )
|
||||||
{
|
{
|
||||||
p_DamageSpamCount{ playerid } = 0;
|
if ( 0 <= playerid < MAX_PLAYERS ) {
|
||||||
|
p_DamageSpamCount{ playerid } = 0;
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user