1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix morale widget update after dismissing a creature in garrison

This commit is contained in:
Vadim Markovtsev
2016-09-19 18:54:05 +02:00
parent 1d45d214e5
commit 31e5f7b800
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);