summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-25 20:03:58 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-25 20:03:58 +0000
commit1129f1a4fbf910016ff6b3b44b3cd178237ee95d (patch)
tree626092e44ab9e399781d0651281da255dfb17b6c /src
parent32d2a932da28b0b5fdb859261a53067be878035d (diff)
downloadhercules-1129f1a4fbf910016ff6b3b44b3cd178237ee95d.tar.gz
hercules-1129f1a4fbf910016ff6b3b44b3cd178237ee95d.tar.bz2
hercules-1129f1a4fbf910016ff6b3b44b3cd178237ee95d.tar.xz
hercules-1129f1a4fbf910016ff6b3b44b3cd178237ee95d.zip
- Fixed item group 35 (lottobox) in item_misc.txt
- Item group reading will now complain when a line doesn't has enough fields. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8865 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/itemdb.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index db21927a4..62d40fe51 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -493,8 +493,11 @@ static void itemdb_read_itemgroup_sub(const char* filename)
}
if(str[0]==NULL)
continue;
- if (j<3)
+ if (j<3) {
+ if (j>1) //Or else it barks on blank lines...
+ ShowWarning("itemdb_read_itemgroup: Insufficient fields for entry at %s:%d\n", filename, ln);
continue;
+ }
groupid = atoi(str[0]);
if (groupid < 0 || groupid >= MAX_ITEMGROUP) {
ShowWarning("itemdb_read_itemgroup: Invalid group %d in %s:%d\n", groupid, filename, ln);