mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-01 00:45:26 +02:00
switch CMapService API to ResourceID
This commit is contained in:
@ -16,7 +16,6 @@
|
||||
#include "StartInfo.h"
|
||||
#include "NetPacks.h"
|
||||
#include "registerTypes/RegisterTypes.h"
|
||||
#include "mapping/CMapInfo.h"
|
||||
#include "BattleInfo.h"
|
||||
#include "JsonNode.h"
|
||||
#include "filesystem/Filesystem.h"
|
||||
@ -840,7 +839,8 @@ void CGameState::initNewGame(bool allowSavingRandomMap)
|
||||
else
|
||||
{
|
||||
logGlobal->infoStream() << "Open map file: " << scenarioOps->mapname;
|
||||
map = CMapService::loadMap(scenarioOps->mapname).release();
|
||||
const ResourceID mapURI(scenarioOps->mapname, EResType::MAP);
|
||||
map = CMapService::loadMap(mapURI).release();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user