Small change

This commit is contained in:
Federico Cecchetto 2022-01-31 15:55:04 +01:00
parent afd9df7269
commit 2c08102eba

View File

@ -1095,7 +1095,7 @@ namespace ui_scripting::lua
const auto alternate = name.starts_with("alt_");
const auto weapon = ::game::G_GetWeaponForName(name.data());
char buffer[0x400];
char buffer[0x400] = {0};
::game::CG_GetWeaponDisplayName(weapon, alternate, buffer, 0x400);
return std::string(buffer);