Removed double saving attempts
* Follow up to 3dfdb38. * Removed an extra save attempt if a player changes jobs and has fame.
This commit is contained in:
parent
3dfdb38d32
commit
dfccb88785
@ -8544,16 +8544,14 @@ bool pc_jobchange(struct map_session_data *sd,int job, char upper)
|
|||||||
|
|
||||||
chrif_save(sd, 0);
|
chrif_save(sd, 0);
|
||||||
//if you were previously famous, not anymore.
|
//if you were previously famous, not anymore.
|
||||||
if (fame_flag) {
|
if (fame_flag)
|
||||||
chrif_save(sd,0);
|
|
||||||
chrif_buildfamelist();
|
chrif_buildfamelist();
|
||||||
} else if (sd->status.fame > 0) {
|
else if (sd->status.fame > 0) {
|
||||||
//It may be that now they are famous?
|
//It may be that now they are famous?
|
||||||
switch (sd->class_&MAPID_UPPERMASK) {
|
switch (sd->class_&MAPID_UPPERMASK) {
|
||||||
case MAPID_BLACKSMITH:
|
case MAPID_BLACKSMITH:
|
||||||
case MAPID_ALCHEMIST:
|
case MAPID_ALCHEMIST:
|
||||||
case MAPID_TAEKWON:
|
case MAPID_TAEKWON:
|
||||||
chrif_save(sd,0);
|
|
||||||
chrif_buildfamelist();
|
chrif_buildfamelist();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user