Corrected character slot movement (#2452)

* Corrected character slot movement
* Resolves characters changing slots (on the char-selection screen) to the first empty slot rather than to the actual slot index.
Thanks to @Tokeiburu, @Lemongrass3110, and @Jeybla!
This commit is contained in:
Aleos
2017-10-05 18:31:30 -04:00
committed by GitHub
parent 0068268337
commit fe75aeab50
2 changed files with 17 additions and 20 deletions

View File

@@ -1725,10 +1725,7 @@ enum e_char_del_response char_delete(struct char_session_data* sd, uint32 char_i
inter_guild_leave(guild_id, account_id, char_id);// Leave your guild.
// refresh character list cache
for(k = i; k < MAX_CHARS-1; k++){
sd->found_char[k] = sd->found_char[k+1];
}
sd->found_char[MAX_CHARS-1] = -1;
sd->found_char[i] = -1;
return CHAR_DELETE_OK;
}