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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index c379e6460..dbb361ef3 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4918,7 +4918,9 @@ void pc_respawn(struct map_session_data* sd, uint8 clrtype)
static int pc_respawn_timer(int tid,unsigned int tick,int id,int data)
{
struct map_session_data *sd = map_id2sd(id);
- pc_respawn(sd,0);
+ if( sd != NULL)
+ pc_respawn(sd,0);
+
return 0;
}