Warning fix (I moved C++17 and CI to another branch) (#739)

* clang warning fixes
* use CMake 3.10 due to MXE CI does not have 3.13 yet

Co-authored-by: Konstantin <rilian@niisi.ras.ru>
This commit is contained in:
KonstantinandKonstantin authored and GitHub committed 2022-05-19 15:14:50 +03:00
1 parent 55b8aac63e
commit c6b198ce14
20 files changed
+37 -22

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ ui64 ArmyManager::howManyReinforcementsCanBuy(const CCreatureSet * h, const CGDw
TResources availableRes = cb->getResourceAmount();
int freeHeroSlots = GameConstants::ARMY_SIZE - h->stacksCount();
for(auto const dc : t->creatures)
for(auto const & dc : t->creatures)
{
creInfo ci = infoFromDC(dc);