summaryrefslogtreecommitdiff
path: root/src/engine_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-03-10 21:17:00 +0000
committerrubidium <rubidium@openttd.org>2009-03-10 21:17:00 +0000
commitfa78027ffd1fc6980693a642af9cbd6c6be66e81 (patch)
tree63e9e9e16f424664d411ac157bade37752ada758 /src/engine_gui.cpp
parent733c0c5c5b168949046e6a2445cd884f0116ce68 (diff)
downloadopenttd-fa78027ffd1fc6980693a642af9cbd6c6be66e81.tar.xz
(svn r15666) -Fix [FS#2689]: sorting of engines in the purchase list didn't use the same numbers as the GUI showed, e.g. articulated parts weren't taken into accound when ordering by capacity.
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r--src/engine_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp
index ce20e8756..84a344c82 100644
--- a/src/engine_gui.cpp
+++ b/src/engine_gui.cpp
@@ -109,7 +109,7 @@ void ShowEnginePreviewWindow(EngineID engine)
AllocateWindowDescFront<EnginePreviewWindow>(&_engine_preview_desc, engine);
}
-static uint GetTotalCapacityOfArticulatedParts(EngineID engine, VehicleType type)
+uint GetTotalCapacityOfArticulatedParts(EngineID engine, VehicleType type)
{
uint total = 0;