summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2019-02-01 15:05:43 +0000
committerPeterN <peter@fuzzle.org>2019-02-01 15:20:52 +0000
commit0355f887d99974d21d678f1b7a12a343dc9ab04a (patch)
tree3c98e20b213817de22a4068c5770e15f6adea13d /src/settings.cpp
parent9e9d485713a5441d7170be7c0fea9fb981342acd (diff)
downloadopenttd-0355f887d99974d21d678f1b7a12a343dc9ab04a.tar.xz
Fix #6438: Properly invalidate AI Settings window when max no competitor setting is changed.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 220628b00..d16cff7a1 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -1174,6 +1174,7 @@ static bool MaxNoAIsChange(int32 i)
ShowErrorMessage(STR_WARNING_NO_SUITABLE_AI, INVALID_STRING_ID, WL_CRITICAL);
}
+ InvalidateWindowClassesData(WC_GAME_OPTIONS, 0);
return true;
}