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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user