1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Save & restore mana

This commit is contained in:
nordsoft
2023-04-06 21:19:46 +04:00
parent 3e28b58c80
commit e85593dbb3
4 changed files with 23 additions and 6 deletions

View File

@ -911,7 +911,7 @@ void CPlayerInterface::battleEnd(const BattleResult *br, QueryID queryID)
{
bool replay = allowBattleReplay && !settings["adventure"]["alwaysSkipCombat"].Bool(); //do not allow manual replay
allowBattleReplay = false;
auto wnd = std::make_shared<CBattleResultWindow>(*br, *this, replay);
auto wnd = std::make_shared<BattleResultWindow>(*br, *this, replay);
wnd->resultCallback = [=](ui32 selection)
{
cb->selectionMade(selection, queryID);