Skip to content

Commit

Permalink
fix weird msvc iterator (why does this exist)?
Browse files Browse the repository at this point in the history
  • Loading branch information
sjrc6 committed Nov 21, 2024
1 parent b2a314d commit dfa1ed6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/game/client/components/bindwheel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ void CBindWheel::AddBind(const char *pName, const char *pCommand)
if(pName[0] == 0 && pCommand[0] == 0 || m_vBinds.size() > MAX_BINDS)
return;

for each(SBind Bind in m_vBinds)
for(SBind &Bind : m_vBinds)
{
if(!str_comp(Bind.m_aName, pName) && !str_comp(Bind.m_aCommand, pCommand))
return;
Expand Down Expand Up @@ -197,7 +197,7 @@ void CBindWheel::ConfigSaveCallback(IConfigManager *pConfigManager, void *pUserD
CBindWheel *pSelf = (CBindWheel *)pUserData;

char aBuf[128] = {};
for each(SBind Bind in pSelf->m_vBinds)
for(SBind &Bind : pSelf->m_vBinds)
{
str_format(aBuf, sizeof(aBuf), "add_bindwheel \"%s\" \"%s\"", Bind.m_aName, Bind.m_aCommand);
pConfigManager->WriteLine(aBuf);
Expand Down
2 changes: 1 addition & 1 deletion src/game/client/components/menus_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3288,7 +3288,7 @@ void CMenus::RenderSettingsTClient(CUIRect MainView)

MainView.VSplitMid(&LeftView, &RightView, MarginBetweenViews);
//RightView.VSplitRight(10.0f, &RightView, nullptr);
for(CUIRect Section in s_SectionBoxes)
for(CUIRect &Section : s_SectionBoxes)
{
Section.w += MarginSmall * 2.0f;
Section.h += MarginSmall;
Expand Down

0 comments on commit dfa1ed6

Please sign in to comment.