projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d371fa9
)
Add a check just incase the mutator deletes the item entity
author
Mario <mario.mario@y7mail.com>
Wed, 4 Sep 2013 20:36:16 +0000
(06:36 +1000)
committer
Mario <mario.mario@y7mail.com>
Wed, 4 Sep 2013 20:36:16 +0000
(06:36 +1000)
qcsrc/common/monsters/sv_monsters.qc
patch
|
blob
|
history
diff --git
a/qcsrc/common/monsters/sv_monsters.qc
b/qcsrc/common/monsters/sv_monsters.qc
index ec40944d528b34c9080aca63b05ac3591cea7fe1..ed7a53225024c0abd2357b9cbd1cab9a06e42d36 100644
(file)
--- 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)