diff --git a/Runtime/ImGuiConsole.cpp b/Runtime/ImGuiConsole.cpp index c16510a93..e268b53a5 100644 --- a/Runtime/ImGuiConsole.cpp +++ b/Runtime/ImGuiConsole.cpp @@ -790,7 +790,7 @@ void ImGuiConsole::ShowLayersWindow() { if (!layers) { continue; } - + if (ImGui::TreeNode(world.first.c_str())) { auto worldLayerState = g_GameState->StateForWorld(world.second).GetLayerState(); u32 startNameIdx = 0; diff --git a/Runtime/World/CWorld.cpp b/Runtime/World/CWorld.cpp index 03f1c47f2..bbeff746e 100644 --- a/Runtime/World/CWorld.cpp +++ b/Runtime/World/CWorld.cpp @@ -150,7 +150,7 @@ bool CDummyWorld::ICheckWorldComplete() { if (version > 12) r.readString(); - worldLayers = CWorldLayers::ReadWorldLayers(r, version, xc_mlvlId); + m_worldLayers = CWorldLayers::ReadWorldLayers(r, version, xc_mlvlId); x30_loadToken.reset(); x34_loadBuf.reset(); @@ -190,7 +190,7 @@ std::string CDummyWorld::IGetDefaultAudioTrack() const { return {}; } int CDummyWorld::IGetAreaCount() const { return x18_areas.size(); } -const std::optional& CDummyWorld::GetWorldLayers() const { return worldLayers; } +const std::optional& CDummyWorld::GetWorldLayers() const { return m_worldLayers; } CWorld::CWorld(IObjectStore& objStore, IFactory& resFactory, CAssetId mlvlId) : x8_mlvlId(mlvlId) diff --git a/Runtime/World/CWorld.hpp b/Runtime/World/CWorld.hpp index bc12e1b81..de730173e 100644 --- a/Runtime/World/CWorld.hpp +++ b/Runtime/World/CWorld.hpp @@ -69,7 +69,7 @@ class CDummyWorld : public IWorld { u32 x38_bufSz; TAreaId x3c_curAreaId = kInvalidAreaId; - std::optional worldLayers; + std::optional m_worldLayers; public: CDummyWorld(CAssetId mlvlId, bool loadMap);