summaryrefslogtreecommitdiff
path: root/src/terraform_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/terraform_gui.cpp')
-rw-r--r--src/terraform_gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/terraform_gui.cpp b/src/terraform_gui.cpp
index bf26910e3..30589f2af 100644
--- a/src/terraform_gui.cpp
+++ b/src/terraform_gui.cpp
@@ -31,6 +31,7 @@
#include "newgrf_object.h"
#include "object.h"
#include "hotkeys.h"
+#include "engine_base.h"
#include "table/strings.h"
@@ -560,6 +561,9 @@ static void ResetLandscapeConfirmationCallback(Window *w, bool confirmed)
if (!st->IsInUse()) delete st;
}
+ /* Now that all vehicles are gone, we can reset the engine pool. Maybe it reduces some NewGRF changing-mess */
+ EngineOverrideManager::ResetToCurrentNewGRFConfig();
+
MarkWholeScreenDirty();
}
}