summaryrefslogtreecommitdiff
path: root/src/players.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/players.cpp')
-rw-r--r--src/players.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/players.cpp b/src/players.cpp
index 02d30fee8..615db5528 100644
--- a/src/players.cpp
+++ b/src/players.cpp
@@ -776,7 +776,7 @@ int32 CmdSetAutoReplace(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
cost = RemoveEngineReplacementForPlayer(p, old_engine_type, flags);
}
- if (IsLocalPlayer()) InvalidateWindow(WC_REPLACE_VEHICLE, GetEngine(old_engine_type)->type);
+ if (IsLocalPlayer()) InvalidateAutoreplaceWindow(old_engine_type);
return cost;
}