1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-24 08:32:34 +02:00

- Missing thing to previous commit...

This commit is contained in:
beegee1 2013-08-19 18:46:30 +00:00
parent a13d72b636
commit fd9995ff82

View File

@ -22,7 +22,7 @@
#include "../StringConstants.h"
#include "CRmgTemplate.h"
CMapGenerator::CMapGenerator()
CMapGenerator::CMapGenerator() : mapGenOptions(nullptr), randomSeed(0)
{
}
@ -34,7 +34,8 @@ CMapGenerator::~CMapGenerator()
std::unique_ptr<CMap> CMapGenerator::generate(CMapGenOptions * mapGenOptions, int randomSeed /*= std::time(nullptr)*/)
{
gen.seed(randomSeed);
this->randomSeed = randomSeed;
gen.seed(this->randomSeed);
this->mapGenOptions = mapGenOptions;
this->mapGenOptions->finalize(gen);