1
0
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:
DjWarmonger 2016-09-19 20:44:13 +02:00 committed by GitHub
commit 264c71c58a
2 changed files with 7 additions and 0 deletions

View File

@ -344,6 +344,12 @@ void CHeroWindow::commanderWindow()
}
void CHeroWindow::updateGarrisons()
{
CWindowWithGarrison::updateGarrisons();
morale->set(&heroWArt);
}
void CHeroWindow::showAll(SDL_Surface * to)
{
CIntObject::showAll(to);

View File

@ -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);