summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index a378e0bfe..7b9a0dd4e 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -1630,7 +1630,7 @@ int pc_delautobonus(struct map_session_data* sd, struct s_autobonus *autobonus,c
if( restore && sd->state.autobonus&autobonus[i].pos )
{
- if( autobonus[i].active != INVALID_TIMER )
+ if( autobonus[i].active != INVALID_TIMER && autobonus[i].bonus_script )
run_script(autobonus[i].bonus_script,0,sd->bl.id,0);
continue;
}