From 1129f1a4fbf910016ff6b3b44b3cd178237ee95d Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 25 Sep 2006 20:03:58 +0000 Subject: - 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 --- src/map/itemdb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/map/itemdb.c') 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); -- cgit v1.2.3-70-g09d2