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 years ago
parent
commit
a796714516
1 changed files with 1 additions and 1 deletions
  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){
 	if(sd->status.hp <= 0){
 		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]
 	//SG map and mob read [Komurka]