summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-06 21:17:37 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-06 22:28:06 +0300
commit4f6b2ebd825282937015efabbd35fc2cc6d992db (patch)
tree3818430c8548c96e3ee9b9c84161449bb1e1b01d /src/map/pc.h
parent4a2c0e09bf758b57a52d9714d5306fee587544cd (diff)
downloadhercules-4f6b2ebd825282937015efabbd35fc2cc6d992db.tar.gz
hercules-4f6b2ebd825282937015efabbd35fc2cc6d992db.tar.bz2
hercules-4f6b2ebd825282937015efabbd35fc2cc6d992db.tar.xz
hercules-4f6b2ebd825282937015efabbd35fc2cc6d992db.zip
Check allowed range for "View" field in item_db for weapon items.
Also fix some array sizes.
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index db1d7a9da..0d2bca84d 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -302,8 +302,8 @@ BEGIN_ZEROED_BLOCK; // this block will be globally zeroed at the beginning of st
int reseff[SC_COMMON_MAX-SC_COMMON_MIN+1];
int weapon_coma_ele[ELE_MAX];
int weapon_coma_race[RC_MAX];
- int weapon_atk[16];
- int weapon_atk_rate[16];
+ int weapon_atk[MAX_WEAPON_TYPE];
+ int weapon_atk_rate[MAX_WEAPON_TYPE];
int arrow_addele[ELE_MAX];
int arrow_addrace[RC_MAX];
int arrow_addsize[3];