1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Fix valgrind warning about uninitialised value

This commit is contained in:
ArseniyShestakov
2015-02-16 13:28:10 +03:00
parent aef22002ad
commit 007f95fa44

View File

@@ -424,7 +424,7 @@ void CToggleGroup::addToggle(int identifier, CToggleBase* bt)
}
CToggleGroup::CToggleGroup(const CFunctionList<void(int)> &OnChange, bool musicLikeButtons)
: onChange(OnChange), musicLike(musicLikeButtons)
: onChange(OnChange), musicLike(musicLikeButtons), selectedID(-1)
{}
void CToggleGroup::setSelected(int id)