fix ui elements overriding

This commit is contained in:
MihailRis 2025-12-01 22:24:01 +03:00
parent 69cf4c1c04
commit c214d70f1d
4 changed files with 8 additions and 5 deletions

View file

@ -45,7 +45,7 @@ std::shared_ptr<gui::UINode> UiDocument::get(const std::string& id) const {
if (found == map.end()) {
return nullptr;
}
return found->second;
return found->second.lock();
}
const uidocscript& UiDocument::getScript() const {