mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-17 11:56:46 +02:00
Allow formation change while in hero exchange query
This commit is contained in:
parent
be52d46981
commit
0c7dae0913
@ -380,6 +380,9 @@ bool CGarrisonDialogQuery::blocksPack(const CPack * pack) const
|
||||
if(auto upgrade = dynamic_ptr_cast<UpgradeCreature>(pack))
|
||||
return !vstd::contains(ourIds, upgrade->id);
|
||||
|
||||
if(auto formation = dynamic_ptr_cast<SetFormation>(pack))
|
||||
return !vstd::contains(ourIds, formation->hid);
|
||||
|
||||
return CDialogQuery::blocksPack(pack);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user