1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-17 00:07:41 +02:00

Fix: Captured town should not be duplicated on the UI

This commit is contained in:
Dmitry Orlov
2021-10-27 01:37:45 +03:00
committed by Andrii Danylchenko
parent e4c2f0c822
commit 7cfd1fe0ca
2 changed files with 17 additions and 5 deletions

View File

@ -1505,6 +1505,7 @@ void CPlayerInterface::objectPropertyChanged(const SetObjectProperty * sop)
towns -= obj;
adventureInt->townList.update();
adventureInt->minimap.update();
}
assert(cb->getTownsInfo().size() == towns.size());
}