From: Mario Date: Wed, 4 Sep 2013 20:36:16 +0000 (+1000) Subject: Add a check just incase the mutator deletes the item entity X-Git-Tag: xonotic-v0.8.0~241^2^2~83 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2dead6f901817262842b5d8afadc9823afc11260;p=xonotic%2Fxonotic-data.pk3dir.git Add a check just incase the mutator deletes the item entity --- 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)