mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 15:19:14 +00:00
fix these possible SREs
This commit is contained in:
parent
41862fb341
commit
980faf9174
@ -1451,7 +1451,7 @@ bot_chat_death_watch( killer, last_ks )
|
||||
break;
|
||||
|
||||
case 60:
|
||||
if ( isDefined( self.attackerData[killer.guid] ) && isDefined( self.attackerData[killer.guid].weapon ) )
|
||||
if ( isDefined( self.attackerData ) && isDefined( self.attackerData[killer.guid] ) && isDefined( self.attackerData[killer.guid].weapon ) )
|
||||
message = "Wow! Nice " + getBaseWeaponName( self.attackerData[killer.guid].weapon ) + " you got there, " + killer.name + "!";
|
||||
|
||||
break;
|
||||
@ -2117,6 +2117,11 @@ bot_chat_follow_watch( state, player, time, d, e, f, g )
|
||||
{
|
||||
self endon( "disconnect" );
|
||||
|
||||
if ( !isDefined( player ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
switch ( state )
|
||||
{
|
||||
case "start":
|
||||
|
Loading…
x
Reference in New Issue
Block a user