Added a missing null-pointer check to the timed player pvp/gvg respawn function (mistake in r12232)

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12423 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
ultramage 2008-03-22 11:34:47 +00:00
parent af3d4d9d24
commit 42b5164970

View File

@ -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;
}