mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-04-22 18:25:44 +00:00
Fix possible runtime error
This commit is contained in:
parent
a6d663b67c
commit
e1326342d2
@ -699,6 +699,10 @@ onGrenadeFire()
|
||||
for(;;)
|
||||
{
|
||||
self waittill ( "grenade_fire", grenade, weaponName );
|
||||
|
||||
if (!isDefined(grenade))
|
||||
continue;
|
||||
|
||||
grenade.name = weaponName;
|
||||
if(weaponName == "smoke_grenade_mp")
|
||||
grenade thread AddToSmokeList();
|
||||
|
Loading…
x
Reference in New Issue
Block a user