1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-08 09:37:53 +00:00

Properly check for the Beast flag instead of hardcoding beast races

This commit is contained in:
scrawl 2013-03-12 02:09:54 +01:00
parent 543f573739
commit eeb60edb65

View File

@ -45,7 +45,8 @@ namespace MWWorld
{
// Beast races cannot equip shoes / boots, or full helms (head part vs hair part)
if(npcRace == "argonian" || npcRace == "khajiit")
const ESM::Race* race = MWBase::Environment::get().getWorld()->getStore().get<ESM::Race>().find(npcRace);
if(race->mData.mFlags & ESM::Race::Beast)
{
if(*slot == MWWorld::InventoryStore::Slot_Helmet)
{