diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/order_backup.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/order_backup.cpp b/src/order_backup.cpp index 78091d97b..9632fa3e1 100644 --- a/src/order_backup.cpp +++ b/src/order_backup.cpp @@ -111,7 +111,9 @@ void OrderBackup::DoRestore(Vehicle *v) FOR_ALL_ORDER_BACKUPS(ob) { if (ob->user == user) delete ob; } - new OrderBackup(v, user); + if (OrderBackup::CanAllocateItem()) { + new OrderBackup(v, user); + } } /** |