From fc76cf296e064b0ce54a5c319022fc1f45f4ba8e Mon Sep 17 00:00:00 2001
From: terencehill <piuntn@gmail.com>
Date: Sun, 20 Mar 2011 00:27:55 +0100
Subject: [PATCH] Fix no weapon displayed in the HUD if cl_weaponpriority is
 set to "" before connecting to a new server

---
 qcsrc/client/hud.qc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qcsrc/client/hud.qc b/qcsrc/client/hud.qc
index 1053c5e5f..4dfb60c2d 100644
--- a/qcsrc/client/hud.qc
+++ b/qcsrc/client/hud.qc
@@ -1619,7 +1619,7 @@ void HUD_Weapons(void)
 	}
 
 	// TODO make this configurable
-	if(weaponorder_bypriority != autocvar_cl_weaponpriority)
+	if(weaponorder_bypriority != autocvar_cl_weaponpriority || !weaponorder[0])
 	{
 		if(weaponorder_bypriority)
 			strunzone(weaponorder_bypriority);
-- 
2.39.5