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:
parent
6381a6f601
commit
263d439605
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user