summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-10-31 15:14:01 +0100
committerHaru <haru@dotalux.com>2014-10-31 15:17:15 +0100
commite9333d72a25187bf618922c1b0c1cc756d0a681b (patch)
tree8119e99b31ee72bf0eb8baf0488ebcde747af74b /src/map/script.c
parentc451d3274787ee8d47938493e9e50801ae3e9540 (diff)
downloadhercules-e9333d72a25187bf618922c1b0c1cc756d0a681b.tar.gz
hercules-e9333d72a25187bf618922c1b0c1cc756d0a681b.tar.bz2
hercules-e9333d72a25187bf618922c1b0c1cc756d0a681b.tar.xz
hercules-e9333d72a25187bf618922c1b0c1cc756d0a681b.zip
Fixed some errors pointed out by clang's static analyzer
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index f4c343452..1516a0234 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -8761,6 +8761,7 @@ BUILDIN(setmount)
flag == SETMOUNT_TYPE_DRAGON_RED ? OPTION_DRAGON5 :
OPTION_DRAGON1); // default value
pc->setridingdragon(sd, option);
+ }
} else if ((sd->class_&MAPID_THIRDMASK) == MAPID_RANGER) {
// Ranger (Warg)
if (pc->checkskill(sd, RA_WUGRIDER))
@@ -8769,8 +8770,6 @@ BUILDIN(setmount)
// Mechanic (Mado Gear)
if (pc->checkskill(sd, NC_MADOLICENCE))
pc->setmadogear(sd, true);
- } else if (flag != SETMOUNT_TYPE_PECO)
- flag = SETMOUNT_TYPE_PECO;
} else {
// Knight / Crusader (Peco Peco)
if (pc->checkskill(sd, KN_RIDING))