fixed syntax error .

This commit is contained in:
Zero Fanker 2024-04-10 21:48:42 -04:00
parent bd43b227e9
commit 8dd02a233b

View file

@ -1308,12 +1308,13 @@ CString GetFreeID()
"Actions",
"AITriggerTypes",
};
auto const found = find(std::begin(typeListSections), std::end(typeListSections), [&ini, input](auto const& key) {
return ini.GetSection(key).HasValue(input);
});
if (found != std::end(typeListSections)) {
if (find(std::begin(typeListSections), std::end(typeListSections), input) != std::end(typeListSections)) {
return true;
}
if (find(std::begin(idListSections), std::end(idListSections), input) != std::end(idListSections)) {
return true;
}
return false;
};
for (;;) {