diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-06 21:17:37 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-06 22:28:06 +0300 |
commit | 4f6b2ebd825282937015efabbd35fc2cc6d992db (patch) | |
tree | 3818430c8548c96e3ee9b9c84161449bb1e1b01d /src/common/mmo.h | |
parent | 4a2c0e09bf758b57a52d9714d5306fee587544cd (diff) | |
download | hercules-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.h | 3 |
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 { |