summaryrefslogtreecommitdiff
path: root/src/common/mmo.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/common/mmo.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/common/mmo.h')
-rw-r--r--src/common/mmo.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/mmo.h b/src/common/mmo.h
index 77b9abab6..8818ea9df 100644
--- a/src/common/mmo.h
+++ b/src/common/mmo.h
@@ -971,7 +971,7 @@ enum weapon_type {
W_GRENADE, //21
W_HUUMA, //22
W_2HSTAFF, //23
- MAX_WEAPON_TYPE,
+ MAX_SINGLE_WEAPON_TYPE,
// dual-wield constants
W_DOUBLE_DD, ///< 2 daggers
W_DOUBLE_SS, ///< 2 swords
@@ -979,6 +979,7 @@ enum weapon_type {
W_DOUBLE_DS, ///< dagger + sword
W_DOUBLE_DA, ///< dagger + axe
W_DOUBLE_SA, ///< sword + axe
+ MAX_WEAPON_TYPE,
};
enum ammo_type {