summaryrefslogtreecommitdiff
path: root/src/map/intif.c
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-30 03:58:08 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-12-30 03:58:08 +0000
commit790cd65db9cd68f6d541120a492542dfc73aa2c0 (patch)
tree704abc328b7c36e32a4ef4e47cbbb59c42cb4bab /src/map/intif.c
parentf29b1bc83edac7b0f153b98bb64ac79d29b633a0 (diff)
downloadhercules-790cd65db9cd68f6d541120a492542dfc73aa2c0.tar.gz
hercules-790cd65db9cd68f6d541120a492542dfc73aa2c0.tar.bz2
hercules-790cd65db9cd68f6d541120a492542dfc73aa2c0.tar.xz
hercules-790cd65db9cd68f6d541120a492542dfc73aa2c0.zip
Update
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@867 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/intif.c')
-rw-r--r--src/map/intif.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/intif.c b/src/map/intif.c
index 379589556..8e0267781 100644
--- a/src/map/intif.c
+++ b/src/map/intif.c
@@ -734,6 +734,13 @@ int intif_parse_LoadStorage(int fd) {
struct map_session_data *sd;
stor = account2storage( RFIFOL(fd,4));
+
+ if (stor->storage_status == 1) { // Already open.. lets ignore this update
+ if (battle_config.error_log)
+ printf("intif_parse_LoadStorage: storage received for a client already open\n");
+ return 0;
+ }
+
if (RFIFOW(fd,2)-8 != sizeof(struct storage)) {
if (battle_config.error_log)
printf("intif_parse_LoadStorage: data size error %d %d\n", RFIFOW(fd,2)-8, sizeof(struct storage));