summaryrefslogtreecommitdiff
path: root/ai_pathfinder.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-06-21 16:28:17 +0000
committercelestar <celestar@openttd.org>2005-06-21 16:28:17 +0000
commitaa7334a3eca674131dc1198c592c7e4a925f1d56 (patch)
treedbd1b9d6a856fcab15da2adfe0bacfb2bdc19b7e /ai_pathfinder.c
parente2df1d71d5ec39f89c540f116c1cb0b765a74229 (diff)
downloadopenttd-aa7334a3eca674131dc1198c592c7e4a925f1d56.tar.xz
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
Diffstat (limited to 'ai_pathfinder.c')
-rw-r--r--ai_pathfinder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ai_pathfinder.c b/ai_pathfinder.c
index 734a82c4b..53c6951a6 100644
--- a/ai_pathfinder.c
+++ b/ai_pathfinder.c
@@ -13,7 +13,7 @@
// TODO: make it train compatible
static bool TestCanBuildStationHere(uint tile, byte dir)
{
- Player *p = DEREF_PLAYER(_current_player);
+ Player *p = GetPlayer(_current_player);
if (dir == TEST_STATION_NO_DIR) {
int32 ret;