From: Mario Date: Wed, 23 Dec 2015 23:59:04 +0000 (+1000) Subject: Fix compile X-Git-Tag: xonotic-v0.8.2~1441 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7c732b44b6d4d8ad389ba4e749ae2eae752cc905;p=xonotic%2Fxonotic-data.pk3dir.git Fix compile --- diff --git a/qcsrc/server/bot/havocbot/havocbot.qc b/qcsrc/server/bot/havocbot/havocbot.qc index 088ac899c..e166f8b58 100644 --- a/qcsrc/server/bot/havocbot/havocbot.qc +++ b/qcsrc/server/bot/havocbot/havocbot.qc @@ -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; )); } }