浏览代码

vcmi: fix rmg header levels

It was printed as char, not as int.
Konstantin 2 年之前
父节点
当前提交
a04d8b34f3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/rmg/CMapGenerator.cpp

+ 1 - 1
lib/rmg/CMapGenerator.cpp

@@ -160,7 +160,7 @@ std::string CMapGenerator::getMapDescription() const
     std::stringstream ss;
     ss << boost::str(boost::format(std::string("Map created by the Random Map Generator.\nTemplate was %s, Random seed was %d, size %dx%d") +
         ", levels %d, players %d, computers %d, water %s, monster %s, VCMI map") % mapTemplate->getName() %
-		randomSeed % map->map().width % map->map().height % map->map().levels() % static_cast<int>(mapGenOptions.getPlayerCount()) %
+		randomSeed % map->map().width % map->map().height % static_cast<int>(map->map().levels()) % static_cast<int>(mapGenOptions.getPlayerCount()) %
 		static_cast<int>(mapGenOptions.getCompOnlyPlayerCount()) % waterContentStr[mapGenOptions.getWaterContent()] %
 		monsterStrengthStr[monsterStrengthIndex]);