mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
Fix bed ownership check
This commit is contained in:
parent
5446906b30
commit
c48c91a07f
@ -894,7 +894,7 @@ namespace MWMechanics
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
// TODO: implement a better check to check if target is owned bed
|
// 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;
|
return true;
|
||||||
|
|
||||||
if (target.getClass().isNpc())
|
if (target.getClass().isNpc())
|
||||||
|
Loading…
Reference in New Issue
Block a user