mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 09:53:50 +00:00
Properly check for the Beast flag instead of hardcoding beast races
This commit is contained in:
parent
543f573739
commit
eeb60edb65
1 changed files with 2 additions and 1 deletions
|
@ -45,7 +45,8 @@ namespace MWWorld
|
||||||
{
|
{
|
||||||
|
|
||||||
// Beast races cannot equip shoes / boots, or full helms (head part vs hair part)
|
// 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)
|
if(*slot == MWWorld::InventoryStore::Slot_Helmet)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue