|
|
|
@ -8,8 +8,6 @@
|
|
|
|
|
|
|
|
|
|
#include "class.hpp"
|
|
|
|
|
|
|
|
|
|
#include <iostream> /// \todo remove after rendering is implemented
|
|
|
|
|
|
|
|
|
|
void MWWorld::InventoryStore::copySlots (const InventoryStore& store)
|
|
|
|
|
{
|
|
|
|
|
// some const-trickery, required because of a flaw in the handling of MW-references and the
|
|
|
|
@ -168,13 +166,5 @@ void MWWorld::InventoryStore::autoEquip (const MWMechanics::NpcStats& stats)
|
|
|
|
|
{
|
|
|
|
|
mSlots.swap (slots);
|
|
|
|
|
flagAsModified();
|
|
|
|
|
|
|
|
|
|
/// \todo remove the following line after rendering is implemented
|
|
|
|
|
for (std::size_t i=0; i<mSlots.size(); ++i)
|
|
|
|
|
if (mSlots[i]!=end())
|
|
|
|
|
{
|
|
|
|
|
std::cout<<"NPC is equipping " << MWWorld::Class::get (*mSlots[i]).getName (*mSlots[i])
|
|
|
|
|
<< " in slot " << i << std::endl;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|