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

Fixes for issues detected by valgrind

This commit is contained in:
Ivan Savenko
2025-02-06 19:22:04 +00:00
parent fff5ac5945
commit 4e6560c4c9
4 changed files with 19 additions and 2 deletions

View File

@ -117,8 +117,17 @@ void CMapHeader::setupEvents()
defeatMessage.appendTextID("core.lcdesc.0");
}
CMapHeader::CMapHeader() : version(EMapFormat::VCMI), height(72), width(72),
twoLevel(true), difficulty(EMapDifficulty::NORMAL), levelLimit(0), howManyTeams(0), areAnyPlayers(false)
CMapHeader::CMapHeader()
: version(EMapFormat::VCMI)
, height(72)
, width(72)
, twoLevel(true)
, difficulty(EMapDifficulty::NORMAL)
, levelLimit(0)
, howManyTeams(0)
, areAnyPlayers(false)
, victoryIconIndex(0)
, defeatIconIndex(0)
{
setupEvents();
allowedHeroes = VLC->heroh->getDefaultAllowed();