Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/client.cc')
-rw-r--r--src/client/client.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/client.cc b/src/client/client.cc
index 5ab5a0b..d364d50 100644
--- a/src/client/client.cc
+++ b/src/client/client.cc
@@ -19,6 +19,7 @@
#include "client/soundext.h"
#include "client/savegamemenu.h"
#include "core/core.h"
+#include "core/gameserver.h"
#include "core/loader.h"
#include "core/zone.h"
#include "filesystem/filesystem.h"
@@ -702,6 +703,10 @@ void Client::func_loadgame(std::string const &args)
aux::to_label(savename);
if (!savename.size()) {
+ // only quickload in local games
+ if (!core::server() || !core::server()->module()) {
+ return;
+ }
savename.assign("quicksave");
}
SaveGameMenu::loadgame(savename);