Fixed napalm grenades not always working.

This commit is contained in:
Richard Helgeby 2010-06-06 02:43:51 +02:00
parent 0b1ee5eec8
commit 899833d432

View File

@ -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;
}