summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-02-19 20:24:56 -0300
committerpanikon <panikon@zoho.com>2014-02-19 20:24:56 -0300
commitd6cd24a757c7254914ef048f71aa7e9d4f493fda (patch)
tree53b779650a2821dc8bf2a9deb00d5a03890449fe /src/map/intif.c
parente6b107b80355201fa958a74860d59a5034bb839d (diff)
downloadhercules-d6cd24a757c7254914ef048f71aa7e9d4f493fda.tar.gz
hercules-d6cd24a757c7254914ef048f71aa7e9d4f493fda.tar.bz2
hercules-d6cd24a757c7254914ef048f71aa7e9d4f493fda.tar.xz
hercules-d6cd24a757c7254914ef048f71aa7e9d4f493fda.zip
Readding last merge as last revert was unintended. Sorry for the trouble.
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 49fbe4721..f04ec4015 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -273,7 +273,7 @@ int intif_saveregistry(struct map_session_data *sd) {
int plen = 0;
size_t len;
- if (intif->CheckForCharServer())
+ if (intif->CheckForCharServer() || !sd->var_db)
return -1;
WFIFOHEAD(inter_fd, 60000 + 300);