feat(Tab/Weapons): Optimised reference to weapon option in dropdown

This commit is contained in:
Yimura 2021-07-23 12:01:52 +02:00
parent 408ca4c45b
commit 32fbef0d8b

View File

@ -13,7 +13,7 @@ namespace big
if (ImGui::BeginCombo("Weapon", custom_weapons[(int)selected].name))
{
for (custom_weapon weapon : custom_weapons)
for (const custom_weapon &weapon : custom_weapons)
{
if (ImGui::Selectable(weapon.name, weapon.id == selected))
{