summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Friis <peavey@inspircd.org>2009-06-23 16:36:53 +0200
committerDennis Friis <peavey@inspircd.org>2009-06-25 01:13:21 +0200
commitc0ac4c9070fca4e2d00d4f9ebdfae76546d8e243 (patch)
tree23572e86fa373dc1d115de43852a5bd7c25e5f51
parent74a081257cf39ad1d290b5b5bfee559b1fcb9b07 (diff)
downloadtmwa-c0ac4c9070fca4e2d00d4f9ebdfae76546d8e243.tar.gz
tmwa-c0ac4c9070fca4e2d00d4f9ebdfae76546d8e243.tar.bz2
tmwa-c0ac4c9070fca4e2d00d4f9ebdfae76546d8e243.tar.xz
tmwa-c0ac4c9070fca4e2d00d4f9ebdfae76546d8e243.zip
Fix storage warning on full, derived from ea stable.
-rw-r--r--src/char/int_storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/char/int_storage.c b/src/char/int_storage.c
index 112c84b..8f7f9d7 100644
--- a/src/char/int_storage.c
+++ b/src/char/int_storage.c
@@ -102,7 +102,7 @@ int storage_fromstr(char *str,struct storage *p)
else return 1;
}
- if (i >= MAX_STORAGE)
+ if (i >= MAX_STORAGE && str[next] && str[next]!='\t')
printf("storage_fromstr: Found a storage line with more items than MAX_STORAGE (%d), remaining items have been discarded!\n", MAX_STORAGE);
return 0;
}
@@ -186,7 +186,7 @@ int guild_storage_fromstr(char *str,struct guild_storage *p)
else return 1;
}
- if (i >= MAX_GUILD_STORAGE)
+ if (i >= MAX_GUILD_STORAGE && str[next] && str[next]!='\t')
printf("guild_storage_fromstr: Found a storage line with more items than MAX_GUILD_STORAGE (%d), remaining items have been discarded!\n", MAX_GUILD_STORAGE);
return 0;
}