summaryrefslogtreecommitdiff
path: root/src/map/itemdb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/itemdb.c')
-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);