fix from json not setting function ptr to null
This commit is contained in:
2024-08-28 20:58:26 +02:00
parent 8ba2dc4ef1
commit 6f3215166b
3 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -7,7 +7,8 @@ UI_button::UI_button(std::string id, std::string text, Color fg_color, Color bg_
}
UI_button::UI_button(const json& j)
: UI_item(UI_BUTTON_TYPE)
: UI_item(UI_BUTTON_TYPE),
m_on_click(nullptr)
{
from_json(j);
}