This commit is contained in:
MihailRis
2025-01-22 08:18:17 +03:00
parent da10151d5a
commit 02554e469a
6 changed files with 67 additions and 35 deletions
+3 -2
View File
@@ -637,8 +637,9 @@ static std::shared_ptr<UINode> readInventory(UiXmlReader& reader, const xml::xml
static std::shared_ptr<UINode> readPageBox(UiXmlReader& reader, const xml::xmlelement& element) {
auto menu = std::make_shared<Menu>();
// FIXME
menu->setPageLoader(scripting::engine->getGUI()->getMenu()->getPageLoader());
menu->setPageLoader(
Engine::getInstance().getGUI()->getMenu()->getPageLoader()
);
_readContainer(reader, element, *menu);
return menu;