From ed1e54bd84074412ea9f273b7cd86aed42d844ce Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 16 May 2009 23:44:36 +0000 Subject: (svn r16326) -Codechange: replace GetPoolItemPoolSize() by PoolItem::GetPoolSize() --- src/waypoint_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/waypoint_cmd.cpp') diff --git a/src/waypoint_cmd.cpp b/src/waypoint_cmd.cpp index a8f50e13e..e47310bfd 100644 --- a/src/waypoint_cmd.cpp +++ b/src/waypoint_cmd.cpp @@ -69,7 +69,7 @@ static void MakeDefaultWaypointName(Waypoint *wp) * If it wasn't using 'used' and 'idx', it would just search for increasing 'next', * but this way it is faster */ - WaypointID cid = 0; // current index, goes to GetWaypointPoolSize()-1, then wraps to 0 + WaypointID cid = 0; // current index, goes to Waypoint::GetPoolSize()-1, then wraps to 0 do { Waypoint *lwp = Waypoint::Get(cid); @@ -99,7 +99,7 @@ static void MakeDefaultWaypointName(Waypoint *wp) } cid++; - if (cid == GetWaypointPoolSize()) cid = 0; // wrap to zero... + if (cid == Waypoint::GetPoolSize()) cid = 0; // wrap to zero... } while (cid != idx); wp->town_cn = (uint16)next; // set index... -- cgit v1.2.3-54-g00ecf