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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c
index cac0ae986..d9f75a6e7 100644
--- a/src/map/itemdb.c
+++ b/src/map/itemdb.c
@@ -339,7 +339,7 @@ int itemdb_cantrade(int nameid, int gmlv, int gmlv2)
int itemdb_canpartnertrade(int nameid, int gmlv, int gmlv2)
{
struct item_data* item = itemdb_exists(nameid);
- return (item && (!(item->flag.trade_restriction&(2|4)) || gmlv >= item->gm_lv_trade_override || gmlv2 >= item->gm_lv_trade_override));
+ return (item && (item->flag.trade_restriction&4 || gmlv >= item->gm_lv_trade_override || gmlv2 >= item->gm_lv_trade_override));
}
int itemdb_cansell(int nameid, int gmlv)