mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 21:42:13 +00:00
Security fixes
This commit is contained in:
parent
2715520d6f
commit
d9dd02c610
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user