mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-04 22:14:25 +02:00
Fix tooltip of visited banks after leaving some troops for banks with
creatures as reward
This commit is contained in:
parent
05e861c862
commit
071fb97b33
@ -70,6 +70,9 @@ std::vector<Component> CBank::getPopupComponents(PlayerColor player) const
|
|||||||
if (!VLC->settings()->getBoolean(EGameSettings::BANKS_SHOW_GUARDS_COMPOSITION))
|
if (!VLC->settings()->getBoolean(EGameSettings::BANKS_SHOW_GUARDS_COMPOSITION))
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
|
if (bc == nullptr)
|
||||||
|
return {};
|
||||||
|
|
||||||
std::map<CreatureID, int> guardsAmounts;
|
std::map<CreatureID, int> guardsAmounts;
|
||||||
std::vector<Component> result;
|
std::vector<Component> result;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user