b server tests

This commit is contained in:
2026-04-07 10:21:04 +02:00
parent defa1f904b
commit a5ca81ab1c
3 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ bool UI_item::is_type(json j)
{
return false;
}
return magic_enum::enum_cast<UI_enum>(j.at("type")).value_or(UI_enum::end) == m_type;
return magic_enum::enum_cast<UI_enum>((std::string)j.at("type")).value_or(UI_enum::end) == m_type;
}
void UI_item::set_text(std::string text)