From 28c63cb6d98288a3382f1772f0f2a1f159571ac0 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 6 May 2026 03:41:29 -0700 Subject: [PATCH] fix(editor): exportContentPack uses zoneManifest.mapId instead of hardcoded 9000 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Users who set a custom Map ID via the Zone Metadata panel saw it ignored when exporting the WCP — the pack info would always say mapId=9000. Now reads from zoneManifest_, falling back to 9000 only when the field is unset (0). --- tools/editor/editor_app.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/editor/editor_app.cpp b/tools/editor/editor_app.cpp index 99138f1e..5a082e9a 100644 --- a/tools/editor/editor_app.cpp +++ b/tools/editor/editor_app.cpp @@ -1386,7 +1386,9 @@ void EditorApp::exportContentPack(const std::string& destPath) { info.author = project_.author.empty() ? "Kelsi Davis" : project_.author; info.description = project_.description.empty() ? "Custom zone created with Wowee World Editor" : project_.description; - info.mapId = 9000; + // Honor the user-edited Map ID from the zone manifest panel rather than + // always emitting 9000. + info.mapId = zoneManifest_.mapId != 0 ? zoneManifest_.mapId : 9000; if (ContentPacker::packZone(dir, loadedMap_, destPath, info)) showToast("Content pack exported: " + destPath); else