summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-14 09:38:44 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-11-14 09:38:44 +0000
commit12d79d7aef72980ea3db22369f2b95f0ed996567 (patch)
treefa1693dc5cc14863d37f0a6935b38706f0477260 /src/map/status.c
parentfefc60d0a202e489ebc0d999f13a0abcc638518a (diff)
downloadhercules-12d79d7aef72980ea3db22369f2b95f0ed996567.tar.gz
hercules-12d79d7aef72980ea3db22369f2b95f0ed996567.tar.bz2
hercules-12d79d7aef72980ea3db22369f2b95f0ed996567.tar.xz
hercules-12d79d7aef72980ea3db22369f2b95f0ed996567.zip
Fixed some guild skill offset calculation mistakes -_-
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11732 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 9310e1b57..2c9539b28 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -66,7 +66,7 @@ int current_equip_card_id; //To prevent card-stacking (from jA) [Skotlex]
static void add_sc(int skill, int sc)
{
int sk = skill;
- if (sk > GD_SKILLBASE) sk = skill - GD_SKILLBASE + SC_GD_BASE;
+ if (sk >= GD_SKILLBASE) sk = skill - GD_SKILLBASE + SC_GD_BASE;
else
if (sk >= HM_SKILLBASE) sk = skill - HM_SKILLBASE + SC_HM_BASE;
if (sk < 0 || sk >= MAX_SKILL) {
@@ -508,7 +508,7 @@ void initChangeTables(void)
int SkillStatusChangeTable(int skill)
{
int sk = skill;
- if (sk > GD_SKILLBASE) sk = skill - GD_SKILLBASE + SC_GD_BASE;
+ if (sk >= GD_SKILLBASE) sk = skill - GD_SKILLBASE + SC_GD_BASE;
else
if (sk >= HM_SKILLBASE) sk = skill - HM_SKILLBASE + SC_HM_BASE;
if (sk < 0 || sk >= MAX_SKILL) {