From 9ece3be5cc2869d4d9b62244ef1cc5bbe1f52e17 Mon Sep 17 00:00:00 2001 From: ultramage Date: Sat, 22 Mar 2008 11:34:47 +0000 Subject: Added a missing null-pointer check to the timed player pvp/gvg respawn function (mistake in r12232) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12423 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/pc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/map/pc.c') 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; } -- cgit v1.2.3-60-g2f50