1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-11 15:40:39 +00:00

Avoid using string_view on a temporary

This commit is contained in:
elsid 2024-07-28 23:11:15 +02:00
parent fc2f30dc4a
commit 5c92b18875
No known key found for this signature in database
GPG Key ID: 4DE04C198CBA7625

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,