Browse Source

[Fix]: Ressurect instead of making you die again when logging in.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6811 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance 19 năm trước cách đây
mục cha
commit
a796714516
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/map/pc.c

+ 1 - 1
src/map/pc.c

@@ -797,7 +797,7 @@ int pc_reg_received(struct map_session_data *sd)
 
 	if(sd->status.hp <= 0){
 		sd->status.hp = 0;
-		sd->vd.dead_sit = sd->state.dead_sit = 1;
+		pc_setrestartvalue(sd, 1);
 	}
 	
 	//SG map and mob read [Komurka]