summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-18 16:51:44 +0000
committerrubidium <rubidium@openttd.org>2008-05-18 16:51:44 +0000
commit3ee25565858062788c7466e1bd2fef64b2ae2c57 (patch)
tree4fbae4aa35ef120179cf9069c2eb93fa136ed7a2 /src/vehicle.cpp
parentdc69a7c51bb379a9a35cec77d235567b30cde867 (diff)
downloadopenttd-3ee25565858062788c7466e1bd2fef64b2ae2c57.tar.xz
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index a4f8789a5..90354da3b 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -1733,7 +1733,7 @@ CommandCost CmdNameVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (flags & DC_EXEC) {
free(v->name);
v->name = strdup(_cmd_text);
- ResortVehicleLists();
+ InvalidateWindowClassesData(WC_TRAINS_LIST, 1);
MarkWholeScreenDirty();
}