From 6bc2cd64e70f9747e349c1f456d887c55f240216 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 22 Dec 2011 09:10:26 +0000 Subject: itemdb item type range check fixed, bugreport:5140 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15207 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/itemdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/itemdb.c b/src/map/itemdb.c index c71aab5ed..ae8b84d71 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -764,7 +764,7 @@ static bool itemdb_parse_dbrow(char** str, const char* source, int line, int scr id->type = atoi(str[3]); - if( id->type < 0 || id->type == IT_UNKNOWN || id->type == IT_UNKNOWN2 || ( id->type > IT_THROWWEAPON && id->type < IT_CASH ) || id->type >= IT_MAX ) + if( id->type < 0 || id->type == IT_UNKNOWN || id->type == IT_UNKNOWN2 || ( id->type > IT_DELAYCONSUME && id->type < IT_THROWWEAPON ) || id->type >= IT_MAX ) {// catch invalid item types ShowWarning("itemdb_parse_dbrow: Invalid item type %d for item %d. IT_ETC will be used.\n", id->type, nameid); id->type = IT_ETC; -- cgit v1.2.3-60-g2f50