mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-18 21:18:10 +00:00
Fix #9735: Fix OrderBackup::Reset in non-GUI case
This commit is contained in:
parent
24eb8164ba
commit
b8dbca465a
@ -189,8 +189,8 @@ CommandCost CmdClearOrderBackup(TileIndex tile, DoCommandFlag flags, uint32 p1,
|
||||
uint32 user = _networking && !_network_server ? _network_own_client_id : CLIENT_ID_SERVER;
|
||||
|
||||
for (OrderBackup *ob : OrderBackup::Iterate()) {
|
||||
/* If it's not a backup of us, ignore it. */
|
||||
if (ob->user != user) continue;
|
||||
/* If this is a GUI action, and it's not a backup of us, ignore it. */
|
||||
if (from_gui && ob->user != user) continue;
|
||||
/* If it's not for our chosen tile either, ignore it. */
|
||||
if (t != INVALID_TILE && t != ob->tile) continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user