Fixed napalm grenades not always working.
This commit is contained in:
parent
0b1ee5eec8
commit
899833d432
@ -222,7 +222,7 @@ public Action:NapalmIgniteGrenade(Handle:timer)
|
||||
for (new x = 0; x <= maxentities; x++)
|
||||
{
|
||||
// If entity is invalid, then stop.
|
||||
if(!IsValidEntity(x))
|
||||
if(!IsValidEntity(x) || !IsValidEdict(x))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user