diff options
author | Dastgir <dastgirpojee@rocketmail.com> | 2016-01-04 18:39:55 +0530 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2016-02-21 21:02:59 +0100 |
commit | f606519c3b611573ade246ec82db26437bf03668 (patch) | |
tree | b8afd833b1ba602f0539dfa7c805c3613692a37a /src/map/pc.c | |
parent | 2d4c6eb05e19c31e7b4f69496ce55b6e611a7d35 (diff) | |
download | hercules-f606519c3b611573ade246ec82db26437bf03668.tar.gz hercules-f606519c3b611573ade246ec82db26437bf03668.tar.bz2 hercules-f606519c3b611573ade246ec82db26437bf03668.tar.xz hercules-f606519c3b611573ade246ec82db26437bf03668.zip |
Changing Job field to 'int64'
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 919205b81..ac34910a2 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -998,7 +998,7 @@ int pc_isequip(struct map_session_data *sd,int n) } } //Not equipable by class. [Skotlex] - if (!(1<<(sd->class_&MAPID_BASEMASK)&item->class_base[(sd->class_&JOBL_2_1)?1:((sd->class_&JOBL_2_2)?2:0)])) + if (!(1L<<(sd->class_&MAPID_BASEMASK)&item->class_base[(sd->class_&JOBL_2_1)?1:((sd->class_&JOBL_2_2)?2:0)])) return 0; //Not usable by upper class. [Inkfish] while( 1 ) { @@ -4842,7 +4842,7 @@ int pc_isUseitem(struct map_session_data *sd,int n) //Not equipable by class. [Skotlex] if (!( - (1<<(sd->class_&MAPID_BASEMASK)) & + (1L<<(sd->class_&MAPID_BASEMASK)) & (item->class_base[(sd->class_&JOBL_2_1) ? 1 : ((sd->class_&JOBL_2_2) ? 2 : 0)]) )) return 0; |