summaryrefslogtreecommitdiff
path: root/ai_pathfinder.c
diff options
context:
space:
mode:
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;