diff options
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r-- | src/cheat_gui.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index 5cc5083f1..4122f8830 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -141,6 +141,10 @@ static int32 ClickChangeMaxHlCheat(int32 p1, int32 p2) { /* Execute the change and reload GRF Data */ _settings_game.construction.max_heightlevel = p1; ReloadNewGRFData(); + + /* The smallmap uses an index from heightlevels to colours. Trigger rebuilding it. */ + InvalidateWindowClassesData(WC_SMALLMAP, 2); + return _settings_game.construction.max_heightlevel; } |