summaryrefslogtreecommitdiff
path: root/src/saveload
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-02-09 22:49:28 +0000
committerpeter1138 <peter1138@openttd.org>2009-02-09 22:49:28 +0000
commitad30a3c4caaad54f1b0b279bb0fc78254016efe3 (patch)
tree5980ebeefe7c6c93c1f872cad92d616b259b03dc /src/saveload
parentd846eef0b68474970d7ffe5f1d667d866ddff7a8 (diff)
downloadopenttd-ad30a3c4caaad54f1b0b279bb0fc78254016efe3.tar.xz
(svn r15436) -Codechange: Return index of station spec within station class as a return parameter of GetCustomStationSpecByGrf(), as the index is already known. Saves on an extra loop and an extern...
Diffstat (limited to 'src/saveload')
-rw-r--r--src/saveload/station_sl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saveload/station_sl.cpp b/src/saveload/station_sl.cpp
index b03e59c7d..e166e93a0 100644
--- a/src/saveload/station_sl.cpp
+++ b/src/saveload/station_sl.cpp
@@ -20,7 +20,7 @@ void AfterLoadStations()
for (uint i = 0; i < st->num_specs; i++) {
if (st->speclist[i].grfid == 0) continue;
- st->speclist[i].spec = GetCustomStationSpecByGrf(st->speclist[i].grfid, st->speclist[i].localidx);
+ st->speclist[i].spec = GetCustomStationSpecByGrf(st->speclist[i].grfid, st->speclist[i].localidx, NULL);
}
for (CargoID c = 0; c < NUM_CARGO; c++) st->goods[c].cargo.InvalidateCache();