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:
@ -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();
|
||||
|
Reference in New Issue
Block a user