]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/miscfunctions.qc
Fix another hardcoded slot 0
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / miscfunctions.qc
index 2914ca2deee09cb6430f8222f51344afa9b4e2db..e8b32c8049692830571eae42d73e7e9cd1698cee 100644 (file)
@@ -450,7 +450,7 @@ void GetCvars(entity this, int f)
        {
                .entity weaponentity = weaponentities[0]; // TODO: unhardcode
                if (s == "cl_weaponpriority")
-                       if (this.(weaponentity)) this.(weaponentity).m_switchweapon = w_getbestweapon(this);
+                       if (this.(weaponentity)) this.(weaponentity).m_switchweapon = w_getbestweapon(this, weaponentity);
                if (s == "cl_allow_uidtracking")
                        PlayerStats_GameReport_AddPlayer(this);
        }