summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-24 09:55:20 +0000
committersmatz <smatz@openttd.org>2008-04-24 09:55:20 +0000
commit9fc355fca5d80a7d38d4a35dd6ec00e6adb1391a (patch)
tree425b0f3d08a6a6ba4e8c57af527383861642e162 /src/economy.cpp
parent48eda2b6ef4ac2b29bb007218b162207658d70a5 (diff)
downloadopenttd-9fc355fca5d80a7d38d4a35dd6ec00e6adb1391a.tar.xz
(svn r12862) -Codechange: reduce code duplication for VehicleType -> WindowClass lookup
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index a6dbea987..380a000ba 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1781,7 +1781,7 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left)
}
if (result != 0) {
- InvalidateWindow(v->GetVehicleListWindowClass(), v->owner);
+ InvalidateWindow(GetWindowClassForVehicleType(v->type), v->owner);
InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
st->MarkTilesDirty(true);