mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-28 12:40:06 +00:00
Merge branch 'sleepy_time' into 'master'
Fix bed ownership check See merge request OpenMW/openmw!2858
This commit is contained in:
commit
2f2b952e12
@ -894,7 +894,7 @@ namespace MWMechanics
|
||||
return true;
|
||||
|
||||
// TODO: implement a better check to check if target is owned bed
|
||||
if (target.getClass().isActivator() && target.getClass().getScript(target).startsWith("Bed") != 0)
|
||||
if (target.getClass().isActivator() && !target.getClass().getScript(target).startsWith("Bed"))
|
||||
return true;
|
||||
|
||||
if (target.getClass().isNpc())
|
||||
|
Loading…
x
Reference in New Issue
Block a user