From: Mario Date: Sun, 2 Jun 2013 11:43:10 +0000 (+1000) Subject: Fix a crash if an invalid monster in the spawn list is spawned X-Git-Tag: xonotic-v0.8.0~241^2^2~208 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=253a0d72a8f7b030f93257afa00d765ceeb04d2a;p=xonotic%2Fxonotic-data.pk3dir.git Fix a crash if an invalid monster in the spawn list is spawned --- diff --git a/qcsrc/server/target_spawn.qc b/qcsrc/server/target_spawn.qc index ebb89aa5c..550297754 100644 --- a/qcsrc/server/target_spawn.qc +++ b/qcsrc/server/target_spawn.qc @@ -216,7 +216,8 @@ void target_spawn_edit_entity(entity e, string msg, entity kt, entity t2, entity self = e; activator = act; - self.target_spawn_spawnfunc(); + if(self.target_spawn_spawnfunc) + self.target_spawn_spawnfunc(); self = oldself; activator = oldactivator;