Skip to content

Commit

Permalink
check for none
Browse files Browse the repository at this point in the history
  • Loading branch information
ineed bots committed Apr 4, 2024
1 parent 81856f9 commit f928907
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion maps/mp/bots/_bot_internal.gsc
Original file line number Diff line number Diff line change
Expand Up @@ -422,8 +422,12 @@ onWeaponChange()
{
first = false;
newWeapon = self getcurrentweapon();

// hack fix for botstop overridding weapon
self switchtoweapon( newWeapon );
if ( newWeapon != "none" )
{
self switchtoweapon( newWeapon );
}
}
else
{
Expand Down

0 comments on commit f928907

Please sign in to comment.