diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-22 09:10:26 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-22 09:10:26 +0000 |
commit | 6bc2cd64e70f9747e349c1f456d887c55f240216 (patch) | |
tree | 367f28439af39140b64a0a1151dcd41682cf8960 | |
parent | 86a9a7ac3c4d562e35ec4d7d7f8d0fabd5b817b6 (diff) | |
download | hercules-6bc2cd64e70f9747e349c1f456d887c55f240216.tar.gz hercules-6bc2cd64e70f9747e349c1f456d887c55f240216.tar.bz2 hercules-6bc2cd64e70f9747e349c1f456d887c55f240216.tar.xz hercules-6bc2cd64e70f9747e349c1f456d887c55f240216.zip |
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
-rw-r--r-- | src/map/itemdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |