Fixed napalm grenades not always working.
This commit is contained in:
1 parent
0b1ee5eec8
commit
899833d432
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user