Skip to content

Commit

Permalink
Fix: Only reload level list if there are actually override mods
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Mar 19, 2024
1 parent 78b592d commit 69c9dcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4208,7 +4208,7 @@ bool gameLoadV(PHYSFS_file *fileHandle, unsigned int version, nonstd::optional<n
setOverrideMods(saveGameData.modList);
}

if (game.type == LEVEL_TYPE::CAMPAIGN)
if (game.type == LEVEL_TYPE::CAMPAIGN && hasOverrideMods())
{
// When loading campaign saves, if there are mods loaded (such as campaign mods),
// we *must* reload the search paths now (to ensure that levels in campaign mods can be found)
Expand Down

0 comments on commit 69c9dcb

Please sign in to comment.