diff options
author | Peter Nelson <peter1138@openttd.org> | 2019-02-01 15:05:43 +0000 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2019-02-01 15:20:52 +0000 |
commit | 0355f887d99974d21d678f1b7a12a343dc9ab04a (patch) | |
tree | 3c98e20b213817de22a4068c5770e15f6adea13d /src/settings.cpp | |
parent | 9e9d485713a5441d7170be7c0fea9fb981342acd (diff) | |
download | openttd-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.cpp | 1 |
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; } |