diff options
author | Matheus Macabu <mkbu95@gmail.com> | 2013-07-04 14:35:24 -0300 |
---|---|---|
committer | Matheus Macabu <mkbu95@gmail.com> | 2013-07-04 14:35:24 -0300 |
commit | 5ea7b8b9e172ed16fda6ee5a051ae0dbb767b4ac (patch) | |
tree | 1a622268c8f8f148de045c408b6e94f4b4592b93 /src/char/char.c | |
parent | 5479f9631f8579d03fbfd14d8a49c7976226a156 (diff) | |
parent | 6ced266cc8d41ce6a3c5323c22f295e37b3f5684 (diff) | |
download | hercules-5ea7b8b9e172ed16fda6ee5a051ae0dbb767b4ac.tar.gz hercules-5ea7b8b9e172ed16fda6ee5a051ae0dbb767b4ac.tar.bz2 hercules-5ea7b8b9e172ed16fda6ee5a051ae0dbb767b4ac.tar.xz hercules-5ea7b8b9e172ed16fda6ee5a051ae0dbb767b4ac.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/char/char.c b/src/char/char.c index 7dfb6861c..edc73223a 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -3620,7 +3620,7 @@ static void char_delete2_req(int fd, struct char_session_data* sd) static void char_delete2_accept(int fd, struct char_session_data* sd) {// CH: <0829>.W <char id>.L <birth date:YYMMDD>.6B char birthdate[8+1]; - int char_id, i, k; + int char_id, i; unsigned int base_level; char* data; time_t delete_date; @@ -3683,11 +3683,8 @@ static void char_delete2_accept(int fd, struct char_session_data* sd) } // 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; + char_delete2_accept_ack(fd, char_id, 1); } |