mirror of
https://github.com/OpenMW/openmw.git
synced 2025-07-01 20:41:34 +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;
|
||||
|
||||
// TODO: implement a better check to check if target is owned bed
|
||||
if (target.getClass().isActivator()
|
||||
&& target.getClass().getScript(target).getRefIdString().starts_with("Bed") != 0)
|
||||
if (target.getClass().isActivator() && target.getClass().getScript(target).startsWith("Bed") != 0)
|
||||
return true;
|
||||
|
||||
if (target.getClass().isNpc())
|
||||
|
|
Loading…
Reference in a new issue