diff options
author | shennetsind <ind@henn.et> | 2013-05-05 17:39:47 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-05 17:39:47 -0300 |
commit | 8cc9012eb7e064677d2c9fa74fe1d1a09f90b581 (patch) | |
tree | ca3cfc4490a15db7603b724c4b7a516abe7fec6b /src/map/unit.c | |
parent | 3eb517a5ed648a06fe3158deda37c53fd140414b (diff) | |
download | hercules-8cc9012eb7e064677d2c9fa74fe1d1a09f90b581.tar.gz hercules-8cc9012eb7e064677d2c9fa74fe1d1a09f90b581.tar.bz2 hercules-8cc9012eb7e064677d2c9fa74fe1d1a09f90b581.tar.xz hercules-8cc9012eb7e064677d2c9fa74fe1d1a09f90b581.zip |
3rd Class Effects Update
http://hercules.ws/board/topic/561-3rd-class-effects-update/
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 952b1a20e..f614d2fa0 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -2294,8 +2294,7 @@ int unit_free(struct block_list *bl, clr_type clrtype) if( bl->prev ) //Players are supposed to logout with a "warp" effect. unit_remove_map(bl, clrtype); - switch( bl->type ) - { + switch( bl->type ) { case BL_PC: { struct map_session_data *sd = (struct map_session_data*)bl; @@ -2331,7 +2330,6 @@ int unit_free(struct block_list *bl, clr_type clrtype) sd->reg_num = 0; } if( sd->regstr ) { - int i; for( i = 0; i < sd->regstr_num; ++i ) if( sd->regstr[i].data ) aFree(sd->regstr[i].data); @@ -2349,6 +2347,15 @@ int unit_free(struct block_list *bl, clr_type clrtype) aFree(sd->combos.id); sd->combos.count = 0; } + /* [Ind/Hercules] */ + if( sd->sc_display_count ) { + for(i = 0; i < sd->sc_display_count; i++) { + ers_free(pc_sc_display_ers, sd->sc_display[i]); + } + sd->sc_display_count = 0; + aFree(sd->sc_display); + sd->sc_display = NULL; + } break; } case BL_PET: |