]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/nix/sv_nix.qc
Fix another hardcoded slot 0
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / mutator / nix / sv_nix.qc
index 0a2bc818161775c3660ce9786b18624c6346f952..7804c073298d004df7052047b366a7911b90f36e 100644 (file)
@@ -65,7 +65,7 @@ REGISTER_MUTATOR(nix, cvar("g_nix") && !cvar("g_instagib") && !cvar("g_overkill"
                        it.weapons = start_weapons;
                        .entity weaponentity = weaponentities[0]; // TODO: unhardcode
                        if(!client_hasweapon(it, it.(weaponentity).m_weapon, weaponentity, true, false))
-                               it.(weaponentity).m_switchweapon = w_getbestweapon(it);
+                               it.(weaponentity).m_switchweapon = w_getbestweapon(it, weaponentity);
                });
        }