From 4f6b2ebd825282937015efabbd35fc2cc6d992db Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 6 Mar 2016 21:17:37 +0300 Subject: Check allowed range for "View" field in item_db for weapon items. Also fix some array sizes. --- src/common/mmo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/common') 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 { -- cgit v1.2.3-60-g2f50