mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-17 08:26:50 -04:00
attacktypes error fix
This commit is contained in:
parent
e50e94af0b
commit
5ee1dc6be8
@ -282,11 +282,11 @@ namespace MWClass
|
|||||||
{
|
{
|
||||||
const bool weaphashealth = get(weapon).hasItemHealth(weapon);
|
const bool weaphashealth = get(weapon).hasItemHealth(weapon);
|
||||||
const unsigned char *attack = NULL;
|
const unsigned char *attack = NULL;
|
||||||
if(type == MWMechanics::CreatureStats::AT_Chop)
|
if(type == ESM::Weapon::AT_Chop)
|
||||||
attack = weapon.get<ESM::Weapon>()->mBase->mData.mChop;
|
attack = weapon.get<ESM::Weapon>()->mBase->mData.mChop;
|
||||||
else if(type == MWMechanics::CreatureStats::AT_Slash)
|
else if(type == ESM::Weapon::AT_Slash)
|
||||||
attack = weapon.get<ESM::Weapon>()->mBase->mData.mSlash;
|
attack = weapon.get<ESM::Weapon>()->mBase->mData.mSlash;
|
||||||
else if(type == MWMechanics::CreatureStats::AT_Thrust)
|
else if(type == ESM::Weapon::AT_Thrust)
|
||||||
attack = weapon.get<ESM::Weapon>()->mBase->mData.mThrust;
|
attack = weapon.get<ESM::Weapon>()->mBase->mData.mThrust;
|
||||||
if(attack)
|
if(attack)
|
||||||
{
|
{
|
||||||
|
@ -518,11 +518,11 @@ namespace MWClass
|
|||||||
{
|
{
|
||||||
const bool weaphashealth = get(weapon).hasItemHealth(weapon);
|
const bool weaphashealth = get(weapon).hasItemHealth(weapon);
|
||||||
const unsigned char *attack = NULL;
|
const unsigned char *attack = NULL;
|
||||||
if(type == MWMechanics::CreatureStats::AT_Chop)
|
if(type == ESM::Weapon::AT_Chop)
|
||||||
attack = weapon.get<ESM::Weapon>()->mBase->mData.mChop;
|
attack = weapon.get<ESM::Weapon>()->mBase->mData.mChop;
|
||||||
else if(type == MWMechanics::CreatureStats::AT_Slash)
|
else if(type == ESM::Weapon::AT_Slash)
|
||||||
attack = weapon.get<ESM::Weapon>()->mBase->mData.mSlash;
|
attack = weapon.get<ESM::Weapon>()->mBase->mData.mSlash;
|
||||||
else if(type == MWMechanics::CreatureStats::AT_Thrust)
|
else if(type == ESM::Weapon::AT_Thrust)
|
||||||
attack = weapon.get<ESM::Weapon>()->mBase->mData.mThrust;
|
attack = weapon.get<ESM::Weapon>()->mBase->mData.mThrust;
|
||||||
if(attack)
|
if(attack)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user