From 19fa67f13f2b4a2f93c93ca88acc357ec77df6ce Mon Sep 17 00:00:00 2001 From: past-due <30942300+past-due@users.noreply.github.com> Date: Sat, 11 Nov 2023 13:26:25 -0500 Subject: [PATCH] Fix: Non-builtin map replay desync --- src/multiint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multiint.cpp b/src/multiint.cpp index 10f0abfbc5e..765a7655ce5 100644 --- a/src/multiint.cpp +++ b/src/multiint.cpp @@ -8757,7 +8757,7 @@ bool WZGameReplayOptionsHandler::restoreOptions(const nlohmann::json& object, Em } // Must restore `useTerrainOverrides` (this matters for re-loading the map!) - see loadMapPreview() in multiint.cpp builtInMap = (mapData->realFileName == nullptr); - useTerrainOverrides = shouldLoadTerrainTypeOverrides(mapData->pName); + useTerrainOverrides = builtInMap && shouldLoadTerrainTypeOverrides(mapData->pName); for (Sha256 &hash : game.modHashes) {