summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-07-29 16:45:56 +0000
committerfrosch <frosch@openttd.org>2012-07-29 16:45:56 +0000
commitfcbe53d204ae2f66054c2f93ada1eda46e2ef6b9 (patch)
tree0d4ca9e241c5839850682bed2903ecb74e18e064 /src
parent5ce197158896918605baeeeae915445c4ad17634 (diff)
downloadopenttd-fcbe53d204ae2f66054c2f93ada1eda46e2ef6b9.tar.xz
(svn r24445) -Fix: Do not load order backups when loading a server-saved game in single player.
Diffstat (limited to 'src')
-rw-r--r--src/saveload/order_sl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/saveload/order_sl.cpp b/src/saveload/order_sl.cpp
index ce3582ed8..4637d4a80 100644
--- a/src/saveload/order_sl.cpp
+++ b/src/saveload/order_sl.cpp
@@ -282,10 +282,11 @@ void Load_BKOR()
SlObject(ob, GetOrderBackupDescription());
}
- /* If we are a network server, then we just loaded
+ /* Only load order-backups for network clients.
+ * If we are a network server or not networking, then we just loaded
* a previously saved-by-server savegame. There are
* no clients with a backup anymore, so clear it. */
- if (_networking && _network_server) {
+ if (!_networking || _network_server) {
_order_backup_pool.CleanPool();
}
}