summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-12 16:52:13 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-02-12 16:52:13 +0000
commitf1b03b80afe74b09543f4a255dd3933004781845 (patch)
treebcb4db47ba1da0c830005fb7bba9437691b21890 /src
parenta8b33d03051b6efdd46be7641f252bd2711f3707 (diff)
downloadhercules-f1b03b80afe74b09543f4a255dd3933004781845.tar.gz
hercules-f1b03b80afe74b09543f4a255dd3933004781845.tar.bz2
hercules-f1b03b80afe74b09543f4a255dd3933004781845.tar.xz
hercules-f1b03b80afe74b09543f4a255dd3933004781845.zip
Follow up r15569 fixed console error
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15570 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/itemdb.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index 7f9fedb6b..e25c50a40 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -616,12 +616,10 @@ static bool itemdb_read_itemtrade(char* str[], int columns, int current)
flag = atoi(str[1]);
gmlv = atoi(str[2]);
- if( flag < 0 || flag > 256 )
- {//Check range
+ if( flag < 0 || flag > 511 ) {//Check range
ShowWarning("itemdb_read_itemtrade: Invalid trading mask %d for item id %d.\n", flag, nameid);
return false;
}
-
if( gmlv < 1 )
{
ShowWarning("itemdb_read_itemtrade: Invalid override GM level %d for item id %d.\n", gmlv, nameid);