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
commit0aeed2b96a2586e30b2d1e68cee2f5ed61ae66f1 (patch)
tree63e9e9e16f424664d411ac157bade37752ada758 /src/engine_gui.cpp
parent812f6b8676fddf6bd391337dbbefce060992fbe5 (diff)
downloadopenttd-0aeed2b96a2586e30b2d1e68cee2f5ed61ae66f1.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;