summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
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 c4d79e7a1..f0ce4f200 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -8171,7 +8171,7 @@ int buildin_petskillbonus(struct script_state *st)
pd->bonus->duration=conv_num(st,& (st->stack->stack_data[st->start+4]));
pd->bonus->delay=conv_num(st,& (st->stack->stack_data[st->start+5]));
- if (pd->state.skillbonus == -1)
+ if (pd->state.skillbonus == 1)
pd->state.skillbonus=0; // waiting state
// wait for timer to start