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:
parent
a13d72b636
commit
fd9995ff82
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user