From 159b44f9d25f34b701820c9f817fc4f1853c2e7c Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 20 Dec 2015 12:18:27 +1100 Subject: [PATCH] target_spawn: fix crash --- qcsrc/common/triggers/target/spawn.qc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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. -- 2.39.2