summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/autoreplace_gui.cpp4
-rw-r--r--src/misc_gui.cpp3
-rw-r--r--src/transparency_gui.cpp2
3 files changed, 5 insertions, 4 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index af75dec1b..6182953d0 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -81,7 +81,7 @@ void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g)
/* We don't have any of this engine type.
* Either we just sold the last one, we build a new one or we stopped replacing it.
* In all cases, we need to update the left list */
- InvalidateWindowData(WC_REPLACE_VEHICLE, Engine::Get(e)->type, true);
+ InvalidateWindowData(WC_REPLACE_VEHICLE, Engine::Get(e)->type, 1);
}
}
@@ -91,7 +91,7 @@ void InvalidateAutoreplaceWindow(EngineID e, GroupID id_g)
*/
void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type)
{
- InvalidateWindowData(WC_REPLACE_VEHICLE, type, false); // Update the autoreplace window
+ InvalidateWindowData(WC_REPLACE_VEHICLE, type, 0); // Update the autoreplace window
InvalidateWindowClassesData(WC_BUILD_VEHICLE); // The build windows needs updating as well
}
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 33c22ed7a..a24b9cf75 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -120,7 +120,8 @@ public:
}
}
- LandInfoWindow(TileIndex tile) : Window(), tile(tile) {
+ LandInfoWindow(TileIndex tile) : Window(), tile(tile)
+ {
this->InitNested(&_land_info_desc);
#if defined(_DEBUG)
diff --git a/src/transparency_gui.cpp b/src/transparency_gui.cpp
index 30b70cae0..cc8c399f6 100644
--- a/src/transparency_gui.cpp
+++ b/src/transparency_gui.cpp
@@ -51,7 +51,7 @@ public:
virtual void OnPaint()
{
- OnInvalidateData(0); // Must be sure that the widgets show the transparency variable changes, also when we use shortcuts.
+ this->OnInvalidateData(0); // Must be sure that the widgets show the transparency variable changes, also when we use shortcuts.
this->DrawWidgets();
}