1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

Fix uninitialized variable

This commit is contained in:
Tomasz Zieliński 2024-03-24 07:54:11 +01:00
parent 6381a6f601
commit 263d439605

View File

@ -171,6 +171,7 @@ CMap::CMap(IGameCallback * cb)
, checksum(0)
, grailPos(-1, -1, -1)
, grailRadius(0)
, waterMap(false)
, uidCounter(0)
{
allHeroes.resize(VLC->heroh->size());
@ -605,6 +606,10 @@ bool CMap::calculateWaterContent()
{
waterMap = true;
}
else
{
waterMap = false;
}
return waterMap;
}