diff options
author | Rubidium <rubidium@openttd.org> | 2021-05-30 19:37:48 +0200 |
---|---|---|
committer | rubidium42 <rubidium42@users.noreply.github.com> | 2021-05-30 19:59:49 +0200 |
commit | 5ded596c8092aa73276431c51f6bee6fcb27c03a (patch) | |
tree | 99f009ca0c6b0ffc195543f9f9a93aab43688d69 /src | |
parent | 4613ababd3fea832d5b11832784768323c39b5a9 (diff) | |
download | openttd-5ded596c8092aa73276431c51f6bee6fcb27c03a.tar.xz |
Fix #9320, 2e136285: nullptr could not be converted to string
Diffstat (limited to 'src')
-rw-r--r-- | src/order_backup.cpp | 2 |
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. */ |