mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-19 07:28:04 +08:00
feat(Tab/Weapons): Optimised reference to weapon option in dropdown
This commit is contained in:
parent
bcfe9e4592
commit
2a43b8f163
@ -13,7 +13,7 @@ namespace big
|
|||||||
|
|
||||||
if (ImGui::BeginCombo("Weapon", custom_weapons[(int)selected].name))
|
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))
|
if (ImGui::Selectable(weapon.name, weapon.id == selected))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user