From edbadde301d04264110b1b923ba80af367f6651c Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 7 Aug 2010 22:07:07 +0000 Subject: (svn r20406) -Codechange: make StationClass use the new generic class --- src/ai/api/ai_rail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ai/api/ai_rail.cpp') 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 { -- cgit v1.2.3-54-g00ecf