Security fixes

This commit is contained in:
scrawl 2013-05-20 12:42:11 +02:00
parent 2715520d6f
commit d9dd02c610
2 changed files with 4 additions and 1 deletions

View file

@ -14,6 +14,7 @@ namespace MWMechanics
{
Security::Security(const MWWorld::Ptr &actor)
: mActor(actor)
{
CreatureStats& creatureStats = MWWorld::Class::get(actor).getCreatureStats(actor);
NpcStats& npcStats = MWWorld::Class::get(actor).getNpcStats(actor);

View file

@ -179,7 +179,9 @@ namespace MWWorld
// tool used up?
if (!item.getRefData().getCount())
MWBase::Environment::get().getWindowManager()->setSelectedWeapon(MWWorld::Ptr());
MWBase::Environment::get().getWindowManager()->unsetSelectedWeapon();
else
MWBase::Environment::get().getWindowManager()->setSelectedWeapon(item);
}
}
}