@@ -1783,13 +1783,13 @@ int32 CmdBuildBuoy(TileIndex tile, uint3
/* allocate and initialize new station */
st = new Station(tile);
if (st == NULL) return CMD_ERROR;
/* ensure that in case of error (or no DC_EXEC) the station gets deleted upon return */
std::auto_ptr<Station> st_auto_delete = std::auto_ptr<Station>(st);
std::auto_ptr<Station> st_auto_delete(st);
st->town = ClosestTownFromTile(tile, (uint)-1);
st->sign.width_1 = 0;
if (!GenerateStationName(st, tile, 4)) return CMD_ERROR;