mirror of
https://github.com/OpenMW/openmw.git
synced 2025-05-06 12:11:24 +00:00
Fix bed ownership check
This commit is contained in:
parent
5446906b30
commit
c48c91a07f
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue