From: Mario <mario@smbclan.net>
Date: Sat, 1 Oct 2016 08:19:46 +0000 (+1000)
Subject: Fix compile
X-Git-Tag: xonotic-v0.8.2~326^2~77^2~2
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=a18210910c6400ddceffe84b446a7f3c33d4ac87;p=xonotic%2Fxonotic-data.pk3dir.git

Fix compile
---

diff --git a/qcsrc/server/impulse.qc b/qcsrc/server/impulse.qc
index 0324212069..1ff75bae5a 100644
--- a/qcsrc/server/impulse.qc
+++ b/qcsrc/server/impulse.qc
@@ -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)