summaryrefslogtreecommitdiff
path: root/src/station_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-08-22 20:28:30 +0000
committerrubidium <rubidium@openttd.org>2009-08-22 20:28:30 +0000
commitc539b59da369020aa9f5b1d48ba952381dea6632 (patch)
treea289493a383ccd295e55c5857ed141b858865aec /src/station_cmd.cpp
parent31a6ce56432f31a973d9adbf60c76f01d8dc4a9a (diff)
downloadopenttd-c539b59da369020aa9f5b1d48ba952381dea6632.tar.xz
(svn r17268) -Fix [FS#3143]: Station/Town window titles weren't updated when they got renamed
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index 8ade9639c..9b4da98a8 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -426,6 +426,8 @@ void Station::UpdateVirtCoord()
SetDParam(0, this->index);
SetDParam(1, this->facilities);
this->sign.UpdatePosition(pt.x, pt.y, STR_VIEWPORT_STATION);
+
+ InvalidateWindow(WC_STATION_VIEW, this->index);
}
/** Update the virtual coords needed to draw the station sign for all stations. */