mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Fixed uninitialized variables. callback2 is not yet initialized.
This commit is contained in:
@@ -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 */ )
|
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;
|
ID = myid;
|
||||||
std::map<int,std::string> pom;
|
std::map<int,std::string> pom;
|
||||||
@@ -607,4 +608,4 @@ void CSlider::setAmount( int to )
|
|||||||
{
|
{
|
||||||
positions = to - capacity;
|
positions = to - capacity;
|
||||||
amax(positions, 1);
|
amax(positions, 1);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user