1
0
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:
Evil Eye 2023-03-24 22:15:51 +01:00
parent 5446906b30
commit c48c91a07f

View File

@ -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())