summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubidium <rubidium@openttd.org>2021-05-30 19:37:48 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-05-30 19:59:49 +0200
commit5ded596c8092aa73276431c51f6bee6fcb27c03a (patch)
tree99f009ca0c6b0ffc195543f9f9a93aab43688d69
parent4613ababd3fea832d5b11832784768323c39b5a9 (diff)
downloadopenttd-5ded596c8092aa73276431c51f6bee6fcb27c03a.tar.xz
Fix #9320, 2e136285: nullptr could not be converted to string
-rw-r--r--src/order_backup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_backup.cpp b/src/order_backup.cpp
index f1263809b..37579a319 100644
--- a/src/order_backup.cpp
+++ b/src/order_backup.cpp
@@ -198,7 +198,7 @@ CommandCost CmdClearOrderBackup(TileIndex tile, DoCommandFlag flags, uint32 p1,
/* We need to circumvent the "prevention" from this command being executed
* while the game is paused, so use the internal method. Nor do we want
* this command to get its cost estimated when shift is pressed. */
- DoCommandPInternal(ob->tile, 0, user, CMD_CLEAR_ORDER_BACKUP, nullptr, nullptr, true, false);
+ DoCommandPInternal(ob->tile, 0, user, CMD_CLEAR_ORDER_BACKUP, nullptr, {}, true, false);
} else {
/* The command came from the game logic, i.e. the clearing of a tile.
* In that case we have no need to actually sync this, just do it. */