summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-07-14 01:25:00 +0200
committerHaru <haru@dotalux.com>2016-07-14 01:25:00 +0200
commit5d1a002d3b10e7e833790d85aad727a30fd5703c (patch)
treed5b0100e7173567383081851c70432570994951a /src/map/pc.h
parentac647aba756a9ec08c9ed5ee01549db9409bf5a4 (diff)
downloadhercules-5d1a002d3b10e7e833790d85aad727a30fd5703c.tar.gz
hercules-5d1a002d3b10e7e833790d85aad727a30fd5703c.tar.bz2
hercules-5d1a002d3b10e7e833790d85aad727a30fd5703c.tar.xz
hercules-5d1a002d3b10e7e833790d85aad727a30fd5703c.zip
Fixed Coverity CID 150315: Integer overflowed argument
Fixes a possible unsigned underflow (and changes the type of some unnecessarily unsigned variables to signed, such as pc->max_level[][]) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 58f7a2266..8b1c9a34d 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -795,7 +795,7 @@ struct pc_interface {
BEGIN_ZEROED_BLOCK; /* Everything within this block will be memset to 0 when status_defaults() is executed */
unsigned int exp_table[CLASS_COUNT][2][MAX_LEVEL];
- unsigned int max_level[CLASS_COUNT][2];
+ int max_level[CLASS_COUNT][2];
unsigned int statp[MAX_LEVEL+1];
unsigned int level_penalty[3][RC_MAX][MAX_LEVEL*2+1];
/* */