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:
@@ -344,6 +344,12 @@ void CHeroWindow::commanderWindow()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CHeroWindow::updateGarrisons()
|
||||||
|
{
|
||||||
|
CWindowWithGarrison::updateGarrisons();
|
||||||
|
morale->set(&heroWArt);
|
||||||
|
}
|
||||||
|
|
||||||
void CHeroWindow::showAll(SDL_Surface * to)
|
void CHeroWindow::showAll(SDL_Surface * to)
|
||||||
{
|
{
|
||||||
CIntObject::showAll(to);
|
CIntObject::showAll(to);
|
||||||
|
@@ -91,6 +91,7 @@ public:
|
|||||||
void questlog(); //show quest log in hero window
|
void questlog(); //show quest log in hero window
|
||||||
void commanderWindow();
|
void commanderWindow();
|
||||||
void switchHero(); //changes displayed hero
|
void switchHero(); //changes displayed hero
|
||||||
|
virtual void updateGarrisons() override; //updates the morale widget and calls the parent
|
||||||
|
|
||||||
//friends
|
//friends
|
||||||
friend void CArtPlace::clickLeft(tribool down, bool previousState);
|
friend void CArtPlace::clickLeft(tribool down, bool previousState);
|
||||||
|
Reference in New Issue
Block a user