summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2015-01-18 11:38:08 -0200
committershennetsind <ind@henn.et>2015-01-18 11:38:08 -0200
commitdf961e808a5256031ad3697650ab5f4ba5ddbe16 (patch)
treeac36ce4c2a2845d78a68e9bf12c49e6f61eb0e39 /src/char/char.c
parentd0725afa8363b5f7b0612e087b48013d39339039 (diff)
parent9638e8e3730baea5b28670f8d38dbd417777c976 (diff)
downloadhercules-df961e808a5256031ad3697650ab5f4ba5ddbe16.tar.gz
hercules-df961e808a5256031ad3697650ab5f4ba5ddbe16.tar.bz2
hercules-df961e808a5256031ad3697650ab5f4ba5ddbe16.tar.xz
hercules-df961e808a5256031ad3697650ab5f4ba5ddbe16.zip
Merge branch 'master' of github.com:HerculesWS/Hercules
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 3d328efa9..f29bf8cff 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1461,7 +1461,7 @@ bool char_char_slotchange(struct char_session_data *sd, int fd, unsigned short f
struct mmo_charstatus char_dat;
int from_id = 0;
- if( from > MAX_CHARS || to > MAX_CHARS || ( sd->char_slots && to > sd->char_slots ) || sd->found_char[from] <= 0 )
+ if( from >= MAX_CHARS || to >= MAX_CHARS || ( sd->char_slots && to > sd->char_slots ) || sd->found_char[from] <= 0 )
return false;
if( !chr->mmo_char_fromsql(sd->found_char[from], &char_dat, false) ) // Only the short data is needed.