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

This commit is contained in:
KUDr 2007-01-14 23:43:59 +00:00
parent 278cf974a4
commit fd383668f8

View File

@ -1786,7 +1786,7 @@ int32 CmdBuildBuoy(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
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;