diff options
author | shennetsind <ind@henn.et> | 2013-07-03 21:04:51 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-07-03 21:04:51 -0300 |
commit | 5bac8798519fa02c5f5d9114295e9ebbee865f82 (patch) | |
tree | 5ace87404022561fa0aa43f048705dffafbcf4e8 /src/char/char.c | |
parent | cda25f5c978329496cd015d60e97df4102e09557 (diff) | |
download | hercules-5bac8798519fa02c5f5d9114295e9ebbee865f82.tar.gz hercules-5bac8798519fa02c5f5d9114295e9ebbee865f82.tar.bz2 hercules-5bac8798519fa02c5f5d9114295e9ebbee865f82.tar.xz hercules-5bac8798519fa02c5f5d9114295e9ebbee865f82.zip |
Fixed Char Creation Bug
Would take place when trying to make use of a empty slot recently empty'd.
Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/char/char.c b/src/char/char.c index 7dfb6861c..ac5a9a66c 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -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); } |