- memset map header to avoid garbage being written in unused reserved space

This commit is contained in:
Mark Vejvoda 2011-02-25 22:33:40 +00:00
parent bced200dd1
commit 5787fb3e98
1 changed files with 1 additions and 0 deletions

View File

@ -755,6 +755,7 @@ void MapPreview::saveToFile(const string &path) {
//write header
MapFileHeader header;
memset(&header,0,sizeof(header));
header.version = MAP_FORMAT_VERSION;
header.maxFactions = maxFactions;