Skip to content

Commit

Permalink
Fix: Non-builtin map replay desync
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Nov 11, 2023
1 parent 0cf0e60 commit 19fa67f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/multiint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 19fa67f

Please sign in to comment.