summaryrefslogtreecommitdiff
path: root/ship_gui.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-08-15 16:49:48 +0000
committerrubidium <rubidium@openttd.org>2006-08-15 16:49:48 +0000
commit1cc6e186f06f98c76b43f94a787abaec7f024cd7 (patch)
treea8dc2bb9573156c15f1089772e4b388b37989f2d /ship_gui.c
parent08fd0bed1f443ade7050613a0f7de103a6c4e40c (diff)
downloadopenttd-1cc6e186f06f98c76b43f94a787abaec7f024cd7.tar.xz
(svn r5918) -Cleanup: rename ConvertDayToYMD/ConvertYMDToDay as they really convert a Date to/from a YearMonthDay.
-Cleanup: swap ConvertDateToYMD's parameters to make the order consistent with the name of the function.
Diffstat (limited to 'ship_gui.c')
-rw-r--r--ship_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ship_gui.c b/ship_gui.c
index 49572d7ec..33731bc82 100644
--- a/ship_gui.c
+++ b/ship_gui.c
@@ -53,7 +53,7 @@ void DrawShipPurchaseInfo(int x, int y, EngineID engine_number)
/* Design date - Life length */
e = GetEngine(engine_number);
- ConvertDayToYMD(&ymd, e->intro_date);
+ ConvertDateToYMD(e->intro_date, &ymd);
SetDParam(0, BASE_YEAR + ymd.year);
SetDParam(1, e->lifelength);
DrawString(x,y, STR_PURCHASE_INFO_DESIGNED_LIFE, 0);