1
0
Fork 0

(svn r8139) -Cleanup: simplify auto_ptr initialization (Tron)

release/0.6
KUDr 2007-01-14 23:43:59 +00:00
parent 278cf974a4
commit fd383668f8
1 changed files with 1 additions and 1 deletions

View File

@ -1786,7 +1786,7 @@ int32 CmdBuildBuoy(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (st == NULL) return CMD_ERROR; if (st == NULL) return CMD_ERROR;
/* ensure that in case of error (or no DC_EXEC) the station gets deleted upon return */ /* 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->town = ClosestTownFromTile(tile, (uint)-1);
st->sign.width_1 = 0; st->sign.width_1 = 0;