mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-09 23:50:25 +00:00
(svn r8139) -Cleanup: simplify auto_ptr initialization (Tron)
This commit is contained in:
parent
278cf974a4
commit
fd383668f8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user