Changeset - r26130:b35f21dabdee
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 2 years ago 2021-12-06 18:30:46
j.g.rennison@gmail.com
Fix #9735: Fix OrderBackup::Reset in non-GUI case
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/order_backup.cpp
Show inline comments
 
@@ -189,8 +189,8 @@ CommandCost CmdClearOrderBackup(DoComman
 
	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;
 

	
0 comments (0 inline, 0 general)