From c0ac4c9070fca4e2d00d4f9ebdfae76546d8e243 Mon Sep 17 00:00:00 2001 From: Dennis Friis Date: Tue, 23 Jun 2009 16:36:53 +0200 Subject: Fix storage warning on full, derived from ea stable. --- src/char/int_storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/char') 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; } -- cgit v1.2.3-60-g2f50