From 41513f92cbd4639798cdd8459adbfae4e4cecec8 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 20 Oct 2016 07:10:44 +1000 Subject: [PATCH] Fix intrusive list warning when a monster re-spawns --- qcsrc/common/monsters/sv_monsters.qc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index fd921a032..59c57fbbe 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -1319,8 +1319,9 @@ bool Monster_Spawn(entity this, bool check_appear, int mon_id) this.flags = FL_MONSTER; this.classname = "monster"; this.takedamage = DAMAGE_AIM; + if(!this.bot_attack) + IL_PUSH(g_bot_targets, this); this.bot_attack = true; - IL_PUSH(g_bot_targets, this); this.iscreature = true; this.teleportable = true; this.damagedbycontents = true; -- 2.39.2