summaryrefslogtreecommitdiff
path: root/src/autoslope.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/autoslope.h')
-rw-r--r--src/autoslope.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoslope.h b/src/autoslope.h
index d738f941c..025ed1347 100644
--- a/src/autoslope.h
+++ b/src/autoslope.h
@@ -39,7 +39,7 @@ static inline bool AutoslopeCheckForEntranceEdge(TileIndex tile, uint z_new, Slo
static inline bool AutoslopeEnabled()
{
return (_settings_game.construction.autoslope &&
- ((IsValidPlayer(_current_player) && !_is_old_ai_player) ||
+ ((IsValidPlayerID(_current_player) && !_is_old_ai_player) ||
(_current_player == OWNER_NONE && _game_mode == GM_EDITOR)));
}