index out of bounds fix for npcs

This commit is contained in:
Lorenc Pekaj 2018-10-22 00:35:40 +11:00
parent a64c916637
commit 45b73b7311

View File

@ -36,7 +36,9 @@ stock AC_RepairVehicle( vehicleid )
/* ** Hooks ** */
hook OnPlayerDisconnect( playerid, reason )
{
if ( 0 <= playerid < MAX_PLAYERS ) {
p_DamageSpamCount{ playerid } = 0;
}
return 1;
}