From 2dead6f901817262842b5d8afadc9823afc11260 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 5 Sep 2013 06:36:16 +1000 Subject: [PATCH] Add a check just incase the mutator deletes the item entity --- qcsrc/common/monsters/sv_monsters.qc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/monsters/sv_monsters.qc b/qcsrc/common/monsters/sv_monsters.qc index ec40944d5..ed7a53225 100644 --- a/qcsrc/common/monsters/sv_monsters.qc +++ b/qcsrc/common/monsters/sv_monsters.qc @@ -31,8 +31,11 @@ void monster_dropitem() MUTATOR_CALLHOOK(MonsterDropItem); e = other; - e.think = monster_item_spawn; - e.nextthink = time + 0.3; + if(e) + { + e.think = monster_item_spawn; + e.nextthink = time + 0.3; + } } void monsters_setframe(float _frame) -- 2.39.2