diff options
author | rubidium <rubidium@openttd.org> | 2010-08-07 22:07:07 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-08-07 22:07:07 +0000 |
commit | edbadde301d04264110b1b923ba80af367f6651c (patch) | |
tree | e9f8998e89b9811d9bc0febd58272339a63951c9 /src/ai | |
parent | cb4ab6a23158163e848ab2b5887d1eb449b86a4c (diff) | |
download | openttd-edbadde301d04264110b1b923ba80af367f6651c.tar.xz |
(svn r20406) -Codechange: make StationClass use the new generic class
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/api/ai_rail.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_rail.cpp b/src/ai/api/ai_rail.cpp index 592d6ddd4..e10cdb4df 100644 --- a/src/ai/api/ai_rail.cpp +++ b/src/ai/api/ai_rail.cpp @@ -171,7 +171,7 @@ uint32 p2 = (AIStation::IsValidStation(station_id) ? station_id : INVALID_STATION) << 16; if (res != CALLBACK_FAILED) { int index = 0; - const StationSpec *spec = GetCustomStationSpecByGrf(file->grfid, res, &index); + const StationSpec *spec = StationClass::GetByGrf(file->grfid, res, &index); if (spec == NULL) { DEBUG(grf, 1, "%s returned an invalid station ID for 'AI construction/purchase selection (18)' callback", file->filename); } else { |