summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-10 17:30:54 -0300
committershennetsind <ind@henn.et>2013-05-10 17:30:54 -0300
commitfa24fdb97db2aca73d94bb584835e9e864c8d085 (patch)
treebc5b29c19e979fb1b65df34811f95283f731ea75 /src/map/script.c
parentac3caf50ec83838486e18294a2d1b68794439119 (diff)
downloadhercules-fa24fdb97db2aca73d94bb584835e9e864c8d085.tar.gz
hercules-fa24fdb97db2aca73d94bb584835e9e864c8d085.tar.bz2
hercules-fa24fdb97db2aca73d94bb584835e9e864c8d085.tar.xz
hercules-fa24fdb97db2aca73d94bb584835e9e864c8d085.zip
Fixed Bug #7236 @mount
http://hercules.ws/board/tracker/issue-7236-mount/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 2304a9f42..fd2e2654f 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -9925,7 +9925,7 @@ BUILDIN(changebase)
return true;
}
- if(!sd->disguise && vclass != sd->vd.class_) {
+ if(sd->disguise == -1 && vclass != sd->vd.class_) {
status_set_viewdata(&sd->bl, vclass);
//Updated client view. Base, Weapon and Cloth Colors.
clif->changelook(&sd->bl,LOOK_BASE,sd->vd.class_);
@@ -11787,7 +11787,7 @@ BUILDIN(undisguise)
TBL_PC* sd = script_rid2sd(st);
if (sd == NULL) return true;
- if (sd->disguise) {
+ if (sd->disguise != -1) {
pc_disguise(sd, -1);
script_pushint(st,0);
} else {