1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 17:23:53 +00:00

Merge remote-tracking branch 'scrawl/diseasefix'

This commit is contained in:
Marc Zinnschlag 2013-04-14 19:45:55 +02:00
commit 9bc07e6221

View file

@ -80,7 +80,7 @@ namespace MWMechanics
const ESM::Spell *spell = const ESM::Spell *spell =
MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (iter->first); 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; return true;
} }
@ -94,7 +94,7 @@ namespace MWMechanics
const ESM::Spell *spell = const ESM::Spell *spell =
MWBase::Environment::get().getWorld()->getStore().get<ESM::Spell>().find (iter->first); 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; return true;
} }