forked from teamnwah/openmw-tes3coop
GetArmorType fix
This commit is contained in:
parent
8e857587d7
commit
00e46addc2
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ namespace MWScript
|
|||
MWWorld::InventoryStore& invStore = MWWorld::Class::get(ptr).getInventoryStore (ptr);
|
||||
|
||||
MWWorld::ContainerStoreIterator it = invStore.getSlot (slot);
|
||||
if (it == invStore.end())
|
||||
if (it == invStore.end() || it->getTypeName () != typeid(ESM::Armor).name())
|
||||
{
|
||||
runtime.push(-1);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue