summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 85c17215d..c4cca766a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -6662,7 +6662,7 @@ int status_change_timer(int tid, unsigned int tick, int id, int data)
struct status_change_entry *sce;
bl = map_id2bl(id);
- sc = status_get_sc(bl);
+ sc = bl?status_get_sc(bl):NULL;
status = status_get_status_data(bl);
if(!(bl && sc && (sce = sc->data[type])))