mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-24 04:31:11 +03:00
commit
de598346da
@ -8045,10 +8045,13 @@ int CAI_BaseNPC::UnholsterWeapon( void )
|
||||
if (i == -1)
|
||||
{
|
||||
// Set i to the first weapon you can find
|
||||
for (i = 0; i < WeaponCount(); i++)
|
||||
for (i = 0;;)
|
||||
{
|
||||
if (GetWeapon(i))
|
||||
break;
|
||||
|
||||
if (++i >= WeaponCount())
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
#else
|
||||
|
Loading…
x
Reference in New Issue
Block a user