1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-03-26 11:37:12 +00:00

Merge branch 'fix_asan_error' into 'master'

Avoid using string_view on a temporary

See merge request OpenMW/openmw!4282
This commit is contained in:
uramer 2024-07-28 22:27:54 +00:00
commit 51455b24e0

View File

@ -258,7 +258,7 @@ namespace MWLua
float startPoint = options.get_or("startPoint", 0.0f);
bool forceLoop = options.get_or("forceLoop", false);
const std::string_view lowerGroup = { Misc::StringUtils::lowerCase(groupName) };
const std::string lowerGroup = Misc::StringUtils::lowerCase(groupName);
auto animation = getMutableAnimationOrThrow(ObjectVariant(object));
animation->play(lowerGroup, priority, blendMask, autoDisable, speed, start, stop, startPoint, loops,