]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add a check just incase the mutator deletes the item entity
authorMario <mario.mario@y7mail.com>
Wed, 4 Sep 2013 20:36:16 +0000 (06:36 +1000)
committerMario <mario.mario@y7mail.com>
Wed, 4 Sep 2013 20:36:16 +0000 (06:36 +1000)
qcsrc/common/monsters/sv_monsters.qc

index ec40944d528b34c9080aca63b05ac3591cea7fe1..ed7a53225024c0abd2357b9cbd1cab9a06e42d36 100644 (file)
@@ -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)