(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)

This commit is contained in:
smatz
2009-05-16 23:34:14 +00:00
parent 814f153b5a
commit 6221d74644
116 changed files with 645 additions and 637 deletions

View File

@@ -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);