make sure weapon widget string is always terminated

Glitch introduced by variable gap width for unavailable weapons.
This commit is contained in:
Fabian Greffrath 2022-03-14 12:19:38 +01:00
parent c5914bb4db
commit 3ac3ac7289

View File

@ -1305,6 +1305,7 @@ void HU_Drawer(void)
}
// transfer the init string to the widget
hud_weapstr[i] = '\0';
s = hud_weapstr;
while (*s)
HUlib_addCharToTextLine(&w_weapon, *s++);