From 2d21cecfbbefab36d6e538f53f1cd2620a5e31b6 Mon Sep 17 00:00:00 2001 From: Robin Eklind Date: Mon, 6 Jan 2025 16:34:08 +0100 Subject: [PATCH] themes: add BUGFIX for SpecialThemeFit The treasureFlag global variable overwrites results from CheckThemeReqs in SpecialThemeFit, causing treasure theme to always be valid (regardless of requirements). --- Source/themes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/themes.cpp b/Source/themes.cpp index 629979556..62ec2266f 100644 --- a/Source/themes.cpp +++ b/Source/themes.cpp @@ -341,7 +341,7 @@ BOOL SpecialThemeFit(int i, int t) } break; case THEME_TREASURE: - rv = treasureFlag; + rv = treasureFlag; // BUGFIX: treasureFlag overwrites results from CheckThemeReqs, causing treasure theme to always be valid (regardless of requirements). if (rv) { treasureFlag = FALSE; }