mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Fix wrong detection of diseases
This commit is contained in:
parent
254c6840d8
commit
a57fbbb168
@ -80,7 +80,7 @@ namespace MWMechanics
|
||||
const ESM::Spell *spell =
|
||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (iter->first);
|
||||
|
||||
if (spell->mData.mFlags & ESM::Spell::ST_Disease)
|
||||
if (spell->mData.mType == ESM::Spell::ST_Disease)
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -94,7 +94,7 @@ namespace MWMechanics
|
||||
const ESM::Spell *spell =
|
||||
MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (iter->first);
|
||||
|
||||
if (spell->mData.mFlags & ESM::Spell::ST_Blight)
|
||||
if (spell->mData.mType == ESM::Spell::ST_Blight)
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user