diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-06 23:02:31 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-04-06 23:02:31 +0000 |
commit | cb547b67772615063c3d5dd16df645b6cd872a0e (patch) | |
tree | d2a2b1e7948ab51055d0ff30749431bf28807bbf /src/map/itemdb.c | |
parent | 323e99d29377384892573c6831ce2ae544d57aa1 (diff) | |
download | hercules-cb547b67772615063c3d5dd16df645b6cd872a0e.tar.gz hercules-cb547b67772615063c3d5dd16df645b6cd872a0e.tar.bz2 hercules-cb547b67772615063c3d5dd16df645b6cd872a0e.tar.xz hercules-cb547b67772615063c3d5dd16df645b6cd872a0e.zip |
- Hopefully fixed the wedding item-trade restriction.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5939 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.c')
-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 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)
|