mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-01 10:15:38 +00:00
Fix unsafe use of BaseNode
This commit is contained in:
parent
50e31877ab
commit
a62fe38a1b
1 changed files with 1 additions and 1 deletions
|
@ -1214,7 +1214,7 @@ namespace MWMechanics
|
|||
|
||||
bool MechanicsManager::awarenessCheck(const MWWorld::Ptr &ptr, const MWWorld::Ptr &observer)
|
||||
{
|
||||
if (observer.getClass().getCreatureStats(observer).isDead())
|
||||
if (observer.getClass().getCreatureStats(observer).isDead() || !observer.getRefData().isEnabled())
|
||||
return false;
|
||||
|
||||
const MWWorld::Store<ESM::GameSetting>& store = MWBase::Environment::get().getWorld()->getStore().get<ESM::GameSetting>();
|
||||
|
|
Loading…
Reference in a new issue