瀏覽代碼

- Fixed a bug when starting a random map with a town added by a mod

beegee1 12 年之前
父節點
當前提交
d6dfd8bfbc
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/rmg/CMapGenerator.cpp

+ 1 - 1
lib/rmg/CMapGenerator.cpp

@@ -72,7 +72,7 @@ std::string CMapGenerator::getMapDescription() const
 		if(pSettings.getStartingTown() != CMapGenOptions::CPlayerSettings::RANDOM_TOWN)
 		{
 			ss << ", " << GameConstants::PLAYER_COLOR_NAMES[pSettings.getColor().getNum()]
-			   << " town choice is " << ETownType::names[pSettings.getStartingTown()];
+			   << " town choice is " << VLC->townh->factions[pSettings.getStartingTown()]->name;
 		}
 	}