Use startsWith for ESM::RefId

depth-refraction
elsid 2 years ago
parent 1258bdf40a
commit 1f6d19859a
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

@ -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…
Cancel
Save