mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Weapon::SetItemSlot() fixed missing bitwise negate
This commit is contained in:
parent
6a6eeae4ee
commit
c399f45841
1 changed files with 1 additions and 1 deletions
|
@ -4373,7 +4373,7 @@ const_str Weapon::GetWeaponGroup(void) const
|
|||
//======================
|
||||
void Weapon::SetItemSlot(int slot)
|
||||
{
|
||||
weapon_class &= WEAPON_CLASS_ITEM_SLOT_BITS;
|
||||
weapon_class &= ~WEAPON_CLASS_ITEM_SLOT_BITS;
|
||||
weapon_class |= slot & WEAPON_CLASS_ITEM_SLOT_BITS;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue