diff options
author | tron <tron@openttd.org> | 2005-10-22 06:39:32 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-10-22 06:39:32 +0000 |
commit | 2cc2154ad26b96b032df2f4fca0ce1634e6330b2 (patch) | |
tree | 646e010d91defd66326958b9e15c3eb36077760c /saveload.c | |
parent | 01638700067b9720c187598ad6b4bf786e0e63c1 (diff) | |
download | openttd-2cc2154ad26b96b032df2f4fca0ce1634e6330b2.tar.xz |
(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes
nothing spectacular, just some stuff, which piled up
Diffstat (limited to 'saveload.c')
-rw-r--r-- | saveload.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/saveload.c b/saveload.c index 70d77eabc..499bd3006 100644 --- a/saveload.c +++ b/saveload.c @@ -1111,11 +1111,11 @@ static uint ReferenceToInt(const void *obj, SLRefType rt) switch (rt) { case REF_VEHICLE_OLD: // Old vehicles we save as new onces - case REF_VEHICLE: return ((Vehicle *)obj)->index + 1; - case REF_STATION: return ((Station *)obj)->index + 1; - case REF_TOWN: return ((Town *)obj)->index + 1; - case REF_ORDER: return ((Order *)obj)->index + 1; - case REF_ROADSTOPS: return ((RoadStop *)obj)->index + 1; + case REF_VEHICLE: return ((const Vehicle*)obj)->index + 1; + case REF_STATION: return ((const Station*)obj)->index + 1; + case REF_TOWN: return ((const Town*)obj)->index + 1; + case REF_ORDER: return ((const Order*)obj)->index + 1; + case REF_ROADSTOPS: return ((const RoadStop*)obj)->index + 1; default: NOT_REACHED(); } |