From 24a069454c413c7c6f96a929630ebcb0f3c949e0 Mon Sep 17 00:00:00 2001 From: AKnopik PC Date: Tue, 28 Mar 2023 19:06:23 +0200 Subject: [PATCH] fix build --- src/iomap.cpp | 2 +- src/iomap.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/iomap.cpp b/src/iomap.cpp index 5ffbd5e694..8beb088519 100644 --- a/src/iomap.cpp +++ b/src/iomap.cpp @@ -54,7 +54,7 @@ bool IOMap::loadMap(Map* map, const std::filesystem::path& fileName) { int64_t start = OTSYS_TIME(); try { - OTB::Loader loader{fileName, OTB::Identifier{{'O', 'T', 'B', 'M'}}}; + OTB::Loader loader{fileName.string(), OTB::Identifier{{'O', 'T', 'B', 'M'}}}; auto& root = loader.parseTree(); PropStream propStream; diff --git a/src/iomap.h b/src/iomap.h index 2db15f2a09..acb2ba8794 100644 --- a/src/iomap.h +++ b/src/iomap.h @@ -110,7 +110,7 @@ class IOMap map->spawnfile += "-spawn.xml"; } - return map->spawns.loadFromXml(map->spawnfile); + return map->spawns.loadFromXml(map->spawnfile.string()); } /* Load the houses (not house tile-data) @@ -125,7 +125,7 @@ class IOMap map->housefile += "-house.xml"; } - return map->houses.loadHousesXML(map->housefile); + return map->houses.loadHousesXML(map->housefile.string()); } const std::string& getLastErrorString() const { return errorString; }