diff options
author | KUDr <kudr@openttd.org> | 2007-01-14 23:43:59 +0000 |
---|---|---|
committer | KUDr <kudr@openttd.org> | 2007-01-14 23:43:59 +0000 |
commit | fd383668f85f6f62c3f4ae656a7c7e5be571ad1e (patch) | |
tree | b939e5eaf98d6f4e8ee49a1ab08774b356451f89 /src | |
parent | 278cf974a4d66bd3209c9e9fc0a67691b221184a (diff) | |
download | openttd-fd383668f85f6f62c3f4ae656a7c7e5be571ad1e.tar.xz |
(svn r8139) -Cleanup: simplify auto_ptr initialization (Tron)
Diffstat (limited to 'src')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 98a177d7d..351c55aff 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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; |