Fix crash in template replacement failure news if autorenew succeeds
This commit is contained in:
@@ -810,6 +810,7 @@ CommandCost CmdAutoreplaceVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1
|
||||
}
|
||||
|
||||
if (cost.Succeeded() && nothing_to_do) cost = CommandCost(STR_ERROR_AUTOREPLACE_NOTHING_TO_DO);
|
||||
cost.SetResultData(v->index);
|
||||
return cost;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user