mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-29 03:19:44 +00:00
Fix bed ownership check
This commit is contained in:
parent
5446906b30
commit
c48c91a07f
@ -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…
Reference in New Issue
Block a user