summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorpanikon <panikon@zoho.com>2014-05-24 12:04:51 -0300
committerpanikon <panikon@zoho.com>2014-05-24 12:04:51 -0300
commitb0ad74f6384c1a23715fc1a3256190f4053f8756 (patch)
treeb67d5a5fa8d0a62f37b9664f701a92cdd81244e4 /src/map/script.c
parentc1c75191a63359084221487bfe867c54227391a5 (diff)
downloadhercules-b0ad74f6384c1a23715fc1a3256190f4053f8756.tar.gz
hercules-b0ad74f6384c1a23715fc1a3256190f4053f8756.tar.bz2
hercules-b0ad74f6384c1a23715fc1a3256190f4053f8756.tar.xz
hercules-b0ad74f6384c1a23715fc1a3256190f4053f8756.zip
Fixed issue in *guildskill, lvl could be set to negative values. (issue: 8214) http://hercules.ws/board/tracker/issue-8214-guildskill-lead-to-negative-guild-skill-level/
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 404079126..95cf48a16 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -8307,7 +8307,7 @@ BUILDIN(guildskill) {
if( (gd->skill[id].lv + level) > max_points )
level = max_points - gd->skill[id].lv;
- if( level == 0 )
+ if( level <= 0 )
return true;
memcpy(&gd_skill, &(gd->skill[id]), sizeof(gd->skill[id]));