From 1e4232e7af4a36f5396855cb790a466ac31f3fa1 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 14 Sep 2025 14:13:16 +0200 Subject: Core/Scripts: Use std::string_view to find script id from script name --- src/server/shared/Realm/ClientBuildInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/shared/Realm/ClientBuildInfo.cpp') diff --git a/src/server/shared/Realm/ClientBuildInfo.cpp b/src/server/shared/Realm/ClientBuildInfo.cpp index d3d73071802..8fb44698bf3 100644 --- a/src/server/shared/Realm/ClientBuildInfo.cpp +++ b/src/server/shared/Realm/ClientBuildInfo.cpp @@ -146,7 +146,7 @@ void LoadBuildInfo() build.MajorVersion = fields[0].GetUInt32(); build.MinorVersion = fields[1].GetUInt32(); build.BugfixVersion = fields[2].GetUInt32(); - std::string hotfixVersion = fields[3].GetString(); + std::string_view hotfixVersion = fields[3].GetStringView(); if (hotfixVersion.length() < build.HotfixVersion.size()) std::ranges::copy(hotfixVersion, build.HotfixVersion.begin()); else -- cgit v1.2.3