diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/char/int_storage.c | 4 |
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; } |