1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-12 02:28:11 +02:00

Fixed uninitialized variables. callback2 is not yet initialized.

This commit is contained in:
Frank Zago 2009-08-21 00:59:12 +00:00
parent 9c45f050ef
commit 5352496bad

View File

@ -317,6 +317,7 @@ CHighlightableButton::CHighlightableButton( const CFunctionList<void()> &onSelec
}
CHighlightableButton::CHighlightableButton( const std::pair<std::string, std::string> help, const CFunctionList<void()> &onSelect, int x, int y, const std::string &defName, int myid, int key/*=0*/, std::vector<std::string> * add /*= NULL*/, bool playerColoredButton /*= false */ )
: onlyOn(false), selected(false) // TODO: callback2(???)
{
ID = myid;
std::map<int,std::string> pom;
@ -607,4 +608,4 @@ void CSlider::setAmount( int to )
{
positions = to - capacity;
amax(positions, 1);
}
}