mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-10 05:21:49 +00:00
fix
This commit is contained in:
parent
cefa26b497
commit
d845aeb55f
1 changed files with 1 additions and 1 deletions
|
|
@ -387,7 +387,7 @@ static std::shared_ptr<UINode> read_button(
|
||||||
|
|
||||||
std::shared_ptr<Button> button;
|
std::shared_ptr<Button> button;
|
||||||
auto& elements = element.getElements();
|
auto& elements = element.getElements();
|
||||||
if (!elements.empty() && elements[0]->isText()) {
|
if (!elements.empty() && !elements[0]->isText()) {
|
||||||
auto inner = reader.readUINode(*elements.at(0));
|
auto inner = reader.readUINode(*elements.at(0));
|
||||||
if (inner != nullptr) {
|
if (inner != nullptr) {
|
||||||
button = std::make_shared<Button>(gui, inner, padding);
|
button = std::make_shared<Button>(gui, inner, padding);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue