summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-03-17 21:50:53 +0000
committerglx <glx@openttd.org>2008-03-17 21:50:53 +0000
commit2b86efea7468d11d1334fadcd9f7c959121ba96d (patch)
tree2e5c7587e7504d53402e1c56c5850f57922a8c33 /src
parente2ec1e703272ee05650e897d47e79315f5bc2bca (diff)
downloadopenttd-2b86efea7468d11d1334fadcd9f7c959121ba96d.tar.xz
(svn r12378) -Fix: refresh vehicle details window when cached values are updated
Diffstat (limited to 'src')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index c89e1271b..a52cdfed9 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -290,6 +290,8 @@ void TrainConsistChanged(Vehicle* v)
/* recalculate cached weights and power too (we do this *after* the rest, so it is known which wagons are powered and need extra weight added) */
TrainCargoChanged(v);
+
+ InvalidateWindow(WC_VEHICLE_DETAILS, v->index);
}
enum AccelType {