]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile
authorMario <mario@smbclan.net>
Wed, 23 Dec 2015 23:59:04 +0000 (09:59 +1000)
committerMario <mario@smbclan.net>
Wed, 23 Dec 2015 23:59:04 +0000 (09:59 +1000)
qcsrc/server/bot/havocbot/havocbot.qc

index 088ac899cc83440464af2022e3d6b1b664fe2374..e166f8b58ed13e37910ea091c7246a6d5a122098 100644 (file)
@@ -173,7 +173,7 @@ void havocbot_ai()
                {
                        FOREACH(Weapons, it != WEP_Null, LAMBDA(
                                if((self.weapons & (it.m_wepset)) && (it.spawnflags & WEP_FLAG_RELOADABLE) && (self.weapon_load[it.m_id] < it.reloading_ammo))
-                                       PS(self).m_switchweapon = it.m_id;
+                                       PS(self).m_switchweapon = it;
                        ));
                }
        }