]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix argument number, hopefully fixes crash
authorMario <mario@smbclan.net>
Sat, 11 Jun 2016 10:36:06 +0000 (20:36 +1000)
committerMario <mario@smbclan.net>
Sat, 11 Jun 2016 10:36:06 +0000 (20:36 +1000)
qcsrc/server/mutators/events.qh

index a18b6b80d2edc1241cc9386a92273a5618770086..55f4e1496ca635cfccb939841c46fce963a4df42 100644 (file)
@@ -442,8 +442,8 @@ MUTATOR_HOOKABLE(SV_ParseServerCommand, EV_SV_ParseServerCommand);
 #define EV_Spawn_Score(i, o) \
     /** player wanting to spawn */ i(entity, MUTATOR_ARGV_0_entity) \
     /** spot to be evaluated */ i(entity, MUTATOR_ARGV_1_entity) \
-    /** spot score, _x is priority, _y is "distance" */ i(vector, MUTATOR_ARGV_0_vector) \
-    /**/ o(vector, MUTATOR_ARGV_0_vector) \
+    /** spot score, _x is priority, _y is "distance" */ i(vector, MUTATOR_ARGV_2_vector) \
+    /**/ o(vector, MUTATOR_ARGV_2_vector) \
     /**/
 MUTATOR_HOOKABLE(Spawn_Score, EV_Spawn_Score);