From cc31feab45b8ca95fe23823258213dac2e263f48 Mon Sep 17 00:00:00 2001
From: shennetsind <ind@henn.et>
Date: Sat, 9 Nov 2013 17:44:43 -0200
Subject: Follow up 7803b4e0d437681aa09113b5240363d03d85a1b8

The commit said "4. pc_jobchange now correctly vaporizes the homun.
" while it actually fixed it on skillreset, this commit fixes it on pc_jobchange and on pc_dead.
Special Thanks to kyeme!

Signed-off-by: shennetsind <ind@henn.et>
---
 src/map/pc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/map/pc.c b/src/map/pc.c
index a11d5a8d9..7a04f1fb8 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -6805,7 +6805,7 @@ int pc_dead(struct map_session_data *sd,struct block_list *src) {
 
 	if (sd->status.hom_id > 0){
 	    if(battle_config.homunculus_auto_vapor && sd->hd && !sd->hd->sc.data[SC_LIGHT_OF_REGENE])
-		    homun->vaporize(sd, HOM_ST_ACTIVE);
+		    homun->vaporize(sd, HOM_ST_REST);
 	}
 
 	if( sd->md )
@@ -7750,7 +7750,7 @@ int pc_jobchange(struct map_session_data *sd,int job, int upper)
 		pc->setoption(sd, i);
 
 	if(homun_alive(sd->hd) && !pc->checkskill(sd, AM_CALLHOMUN))
-		homun->vaporize(sd, HOM_ST_ACTIVE);
+		homun->vaporize(sd, HOM_ST_REST);
 
 	if(sd->status.manner < 0)
 		clif->changestatus(sd,SP_MANNER,sd->status.manner);
-- 
cgit v1.2.3-70-g09d2