From: TimePath Date: Sun, 20 Dec 2015 01:18:27 +0000 (+1100) Subject: target_spawn: fix crash X-Git-Tag: xonotic-v0.8.2~1473 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=159b44f9d25f34b701820c9f817fc4f1853c2e7c;p=xonotic%2Fxonotic-data.pk3dir.git target_spawn: fix crash --- diff --git a/qcsrc/common/triggers/target/spawn.qc b/qcsrc/common/triggers/target/spawn.qc index 59737cb99..9a1bc40e6 100644 --- a/qcsrc/common/triggers/target/spawn.qc +++ b/qcsrc/common/triggers/target/spawn.qc @@ -15,7 +15,7 @@ // 2 = trigger on map load float target_spawn_initialized; -.void() target_spawn_spawnfunc; +.void(entity this) target_spawn_spawnfunc; float target_spawn_spawnfunc_field; .entity target_spawn_activator; .float target_spawn_id; @@ -221,7 +221,7 @@ void target_spawn_edit_entity(entity e, string msg, entity kt, entity t2, entity oldactivator = activator; activator = act; - WITH(entity, self, e, e.target_spawn_spawnfunc()); + WITH(entity, self, e, e.target_spawn_spawnfunc(e)); activator = oldactivator; // We called an external function, so we have to re-tokenize msg.