1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

Something that compiles, but crashes when launching RMG map.

This commit is contained in:
DjWarmonger
2014-05-22 19:25:17 +02:00
parent 88f962d6d5
commit 1e1dce20a8
8 changed files with 417 additions and 1793 deletions

View File

@@ -840,8 +840,8 @@ void CGameState::initNewGame()
CStopWatch sw;
// Gen map
CMapGenerator mapGenerator;
map = mapGenerator.generate(scenarioOps->mapGenOptions.get(), scenarioOps->seedToBeUsed).release();
CMapGenerator mapGenerator(*scenarioOps->mapGenOptions, std::time(nullptr));
map = mapGenerator.generate();
// Update starting options
for(int i = 0; i < map->players.size(); ++i)