1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-11-29 19:04:31 +00:00

Resolve new warning from !4798

This commit is contained in:
AnyOldName3 2025-11-10 16:03:02 +00:00
parent 43fecf48c7
commit f8553f2e8a

View file

@ -247,7 +247,7 @@ namespace LuaUtil
color["rgb"] = [](float r, float g, float b) { return Misc::Color(r, g, b, 1); }; color["rgb"] = [](float r, float g, float b) { return Misc::Color(r, g, b, 1); };
color["hex"] = [](std::string_view hex) { return Misc::Color::fromHex(hex); }; color["hex"] = [](std::string_view hex) { return Misc::Color::fromHex(hex); };
color["commaString"] = [](std::string_view str) { color["commaString"] = [](std::string_view str) {
int wrongChars = std::count_if( auto wrongChars = std::count_if(
str.begin(), str.end(), [](unsigned char c) { return !std::isdigit(c) && c != ' ' && c != ','; }); str.begin(), str.end(), [](unsigned char c) { return !std::isdigit(c) && c != ' ' && c != ','; });
if (wrongChars != 0) if (wrongChars != 0)