]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix compile
authorMario <mario@smbclan.net>
Sat, 1 Oct 2016 08:19:46 +0000 (18:19 +1000)
committerMario <mario@smbclan.net>
Sat, 1 Oct 2016 08:19:46 +0000 (18:19 +1000)
qcsrc/server/impulse.qc

index 0324212069c12a04e378e8e377691106cb0de8cc..1ff75bae5a1ac23b496e31ed7b2914e1583cad30 100644 (file)
@@ -251,7 +251,7 @@ IMPULSE(weapon_best)
        if (this.vehicle) return;
        if (IS_DEAD(this)) return;
        .entity weaponentity = weaponentities[0]; // TODO: unhardcode
-       W_SwitchWeapon(this, w_getbestweapon(this), weaponentity);
+       W_SwitchWeapon(this, w_getbestweapon(this, weaponentity), weaponentity);
 }
 
 IMPULSE(weapon_drop)