summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/map/pc.c2
-rw-r--r--src/map/status.c2
2 files changed, 2 insertions, 2 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;
}
diff --git a/src/map/status.c b/src/map/status.c
index 6a3acd8cf..eb480bc2c 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -5913,7 +5913,7 @@ int status_change_start(struct block_list* bl,enum sc_type type,int rate,int val
//case ????:
//Place here SCs that have no SCB_* data, no skill associated, no ICON
//associated, and yet are not wrong/unknown. [Skotlex]
- break;
+ //break;
case SC_MERC_FLEEUP:
case SC_MERC_ATKUP: