summaryrefslogtreecommitdiff
path: root/src/waypoint_cmd.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-16 23:34:14 +0000
committersmatz <smatz@openttd.org>2009-05-16 23:34:14 +0000
commit6221d74644922ea4bbba3ed9cd8bbec42398f77b (patch)
tree0069bbd6bb7525754c5d9353132f5dc64a0996cc /src/waypoint_cmd.cpp
parent814f153b5a98e0030cbd221e6a89e083ce62bb1d (diff)
downloadopenttd-6221d74644922ea4bbba3ed9cd8bbec42398f77b.tar.xz
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
Diffstat (limited to 'src/waypoint_cmd.cpp')
-rw-r--r--src/waypoint_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp
index 8a606b727..a8f50e13e 100644
--- a/src/waypoint_cmd.cpp
+++ b/src/waypoint_cmd.cpp
@@ -71,7 +71,7 @@ static void MakeDefaultWaypointName(Waypoint *wp)
WaypointID cid = 0; // current index, goes to GetWaypointPoolSize()-1, then wraps to 0
do {
- Waypoint *lwp = GetWaypoint(cid);
+ Waypoint *lwp = Waypoint::Get(cid);
/* check only valid waypoints... */
if (lwp->IsValid() && wp != lwp) {
@@ -316,7 +316,7 @@ CommandCost CmdRenameWaypoint(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
{
if (!IsValidWaypointID(p1)) return CMD_ERROR;
- Waypoint *wp = GetWaypoint(p1);
+ Waypoint *wp = Waypoint::Get(p1);
if (!CheckOwnership(wp->owner)) return CMD_ERROR;
bool reset = StrEmpty(text);