]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/stale_move_negation/sv_stale_move_negation.qc
Merge branch 'master' into Lyberta/WaypointIcons
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / stale_move_negation / sv_stale_move_negation.qc
index c54a8a69306f4d7682be9e71003d584dca762a73..04785f8d69c99c7c02205c2c6028fe78b2a3af25 100644 (file)
@@ -14,7 +14,7 @@ MUTATOR_HOOKFUNCTION(mutator_smneg, BuildMutatorsPrettyString) {
     M_ARGV(0, string) = strcat(M_ARGV(0, string), ", Stale-move negation");
 }
 
-.float x_smneg_weight[Weapons_MAX];
+.float x_smneg_weight[REGISTRY_MAX(Weapons)];
 
 float smneg_multiplier(float weight) {
     float a = autocvar_g_smneg_bonus_asymptote;