# HG changeset patch # User rubidium # Date 1194812672 0 # Node ID ba65cb849f4ae4134b7057c8ae182a0e65c0c462 # Parent 82c8bb4890dbacf7a59bb8cfbc16aca50c00b0a1 (svn r11414) -Fix [FS#1387]: when building a station, even though we already 'know' it in memory, it should still be unknown in the realm of callbacks. diff -r 82c8bb4890db -r ba65cb849f4a src/station_cmd.cpp --- a/src/station_cmd.cpp Sun Nov 11 18:32:01 2007 +0000 +++ b/src/station_cmd.cpp Sun Nov 11 20:24:32 2007 +0000 @@ -1042,7 +1042,9 @@ if (statspec != NULL) { /* Use a fixed axis for GetPlatformInfo as our platforms / numtracks are always the right way around */ uint32 platinfo = GetPlatformInfo(AXIS_X, 0, plat_len, numtracks_orig, plat_len - w, numtracks_orig - numtracks, false); - uint16 callback = GetStationCallback(CBID_STATION_TILE_LAYOUT, platinfo, 0, statspec, st, tile); + + /* As the station is not yet completely finished, the station does not yet exist. */ + uint16 callback = GetStationCallback(CBID_STATION_TILE_LAYOUT, platinfo, 0, statspec, NULL, tile); if (callback != CALLBACK_FAILED && callback < 8) SetStationGfx(tile, (callback & ~1) + axis); }