浏览代码

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
ultramage 17 年之前
父节点
当前提交
42b5164970
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/map/pc.c

+ 3 - 1
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;
 }