1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 09:53:50 +00:00

small fix

This commit is contained in:
Tom Mason 2013-01-09 13:27:12 +00:00
parent b035a5aa4a
commit 375961fe5e

View file

@ -40,7 +40,7 @@ namespace MWWorld
slot!=slots.first.end(); ++slot) slot!=slots.first.end(); ++slot)
{ {
// Beast races cannot equip shoes / boots // Beast races cannot equip shoes / boots, or full helms (head part vs hair part)
if(npcRace == "argonian" || npcRace == "khajiit") if(npcRace == "argonian" || npcRace == "khajiit")
{ {
if(*slot == MWWorld::InventoryStore::Slot_Helmet){ if(*slot == MWWorld::InventoryStore::Slot_Helmet){
@ -56,7 +56,9 @@ namespace MWWorld
{ {
if((*itr).mPart == ESM::PartReferenceType::PRT_Head) if((*itr).mPart == ESM::PartReferenceType::PRT_Head)
{ {
if(actor == MWBase::Environment::get().getWorld()->getPlayer().getPlayer() )
MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage13}", std::vector<std::string>()); MWBase::Environment::get().getWindowManager()->messageBox ("#{sNotifyMessage13}", std::vector<std::string>());
allow = false; allow = false;
break; break;
} }