1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-09 21:42:13 +00:00

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);
}
}
}