mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-27 21:49:10 +02:00
Merge pull request #218 from vmarkovtsev/fix-morale-widget
Nice and clean fix.
This commit is contained in:
commit
264c71c58a
@ -344,6 +344,12 @@ void CHeroWindow::commanderWindow()
|
||||
|
||||
}
|
||||
|
||||
void CHeroWindow::updateGarrisons()
|
||||
{
|
||||
CWindowWithGarrison::updateGarrisons();
|
||||
morale->set(&heroWArt);
|
||||
}
|
||||
|
||||
void CHeroWindow::showAll(SDL_Surface * to)
|
||||
{
|
||||
CIntObject::showAll(to);
|
||||
|
@ -91,6 +91,7 @@ public:
|
||||
void questlog(); //show quest log in hero window
|
||||
void commanderWindow();
|
||||
void switchHero(); //changes displayed hero
|
||||
virtual void updateGarrisons() override; //updates the morale widget and calls the parent
|
||||
|
||||
//friends
|
||||
friend void CArtPlace::clickLeft(tribool down, bool previousState);
|
||||
|
Loading…
x
Reference in New Issue
Block a user