1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-30 07:06:43 +00:00

GetArmorType fix

This commit is contained in:
scrawl 2012-11-28 02:48:21 +01:00
parent 8e857587d7
commit 00e46addc2

View file

@ -212,7 +212,7 @@ namespace MWScript
MWWorld::InventoryStore& invStore = MWWorld::Class::get(ptr).getInventoryStore (ptr); MWWorld::InventoryStore& invStore = MWWorld::Class::get(ptr).getInventoryStore (ptr);
MWWorld::ContainerStoreIterator it = invStore.getSlot (slot); MWWorld::ContainerStoreIterator it = invStore.getSlot (slot);
if (it == invStore.end()) if (it == invStore.end() || it->getTypeName () != typeid(ESM::Armor).name())
{ {
runtime.push(-1); runtime.push(-1);
return; return;