summaryrefslogtreecommitdiff
path: root/src/autoreplace_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-02-23 20:29:48 +0000
committerfrosch <frosch@openttd.org>2011-02-23 20:29:48 +0000
commit1a3a1e3b0c80831c87c9ff903d1a6a5d422b191c (patch)
tree9f00d11dc63b5f6a42551033646102cb65e4aadf /src/autoreplace_gui.cpp
parent50daa3f83db51c13cf91d04eccfc2518c2d4ae85 (diff)
downloadopenttd-1a3a1e3b0c80831c87c9ff903d1a6a5d422b191c.tar.xz
(svn r22133) -Fix: some coding style.
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r--src/autoreplace_gui.cpp4
1 files changed, 2 insertions, 2 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
}