1
0
Fork 0
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:
elsid 2023-03-06 22:20:08 +01:00
parent 1258bdf40a
commit 1f6d19859a
No known key found for this signature in database
GPG key ID: 4DE04C198CBA7625

View file

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