mirror of
https://github.com/OpenMW/openmw.git
synced 2025-12-13 06:43:06 +00:00
Use startsWith for ESM::RefId
This commit is contained in:
parent
1258bdf40a
commit
1f6d19859a
1 changed files with 1 additions and 2 deletions
|
|
@ -894,8 +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()
|
if (target.getClass().isActivator() && target.getClass().getScript(target).startsWith("Bed") != 0)
|
||||||
&& target.getClass().getScript(target).getRefIdString().starts_with("Bed") != 0)
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
if (target.getClass().isNpc())
|
if (target.getClass().isNpc())
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue