summaryrefslogtreecommitdiff
path: root/src/command.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/command.cpp
parent814f153b5a98e0030cbd221e6a89e083ce62bb1d (diff)
downloadopenttd-6221d74644922ea4bbba3ed9cd8bbec42398f77b.tar.xz
(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.cpp b/src/command.cpp
index b59023fa6..49804f4b4 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -459,7 +459,7 @@ Money GetAvailableMoneyForCommand()
{
CompanyID company = _current_company;
if (!IsValidCompanyID(company)) return INT64_MAX;
- return GetCompany(company)->money;
+ return Company::Get(company)->money;
}
/**
@@ -591,7 +591,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac
/* update last build coordinate of company. */
if (tile != 0 && IsValidCompanyID(_current_company)) {
- GetCompany(_current_company)->last_build_coordinate = tile;
+ Company::Get(_current_company)->last_build_coordinate = tile;
}
/* Actually try and execute the command. If no cost-type is given