1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-03-25 21:38:59 +02:00

Update according to comments.

This commit is contained in:
toneyisnow 2020-01-22 23:07:20 -08:00
parent 01ca21ae67
commit 8341ba3c27

View File

@ -23,8 +23,6 @@
#include "../windows/InfoWindows.h"
#include "../../lib/CConfigHandler.h"
using namespace std;
void CButton::update()
{
if (overlay)
@ -439,7 +437,7 @@ void CToggleGroup::setSelected(int id)
void CToggleGroup::setSelectedOnly(int id)
{
for (map<int, shared_ptr<CToggleBase> >::iterator it = buttons.begin(); it != buttons.end(); it++)
for(auto it = buttons.begin(); it != buttons.end(); it++)
{
int buttonId = it->first;
buttons[buttonId]->setEnabled(buttonId == id);