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 | 0b936c3222b3945f738885c6c7db3b46363ec6fe (patch) | |
tree | 646e010d91defd66326958b9e15c3eb36077760c /saveload.c | |
parent | 4642ac94a903d1a358ac795240a6b800372b9020 (diff) | |
download | openttd-0b936c3222b3945f738885c6c7db3b46363ec6fe.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(); } |