mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-06-27 14:51:49 +00:00
Fix possible runtime error
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user