1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

Minor bugfix.

This commit is contained in:
Michał W. Urbańczyk 2007-07-25 20:46:39 +00:00
parent 53da2c389c
commit 4a5bdb5351

View File

@ -45,7 +45,7 @@ template <class T=ttt> struct SetrButton: public Button<T>
{
int key, * poin;
virtual void press(bool down=true);
SetrButton(){type=0;selectable=selected=false;state=0;}
SetrButton(){type=0;selectable=selected=false;state=0;highlightable=false;}
};
template<class T=CPreGame> class Slider
{ //
@ -76,7 +76,7 @@ template<class T=ttt> struct IntBut: public Button<T>
public:
int key;
int * what;
IntBut(){type=2;fun=NULL;};
IntBut(){type=2;fun=NULL;highlightable=false;};
IntBut( SDL_Rect Pos, T Fun,CDefHandler* Imgs, bool Sel, int Key, int * What)
: Button(Pos,Fun,Imgs,Sel,gr),key(My),key(Key),what(What){ourGroup=gr;type=2;fun=NULL;};
void set(){*what=key;};