Skip to content
This repository was archived by the owner on Dec 3, 2020. It is now read-only.

Commit b66ba55

Browse files
committed
Fix node box name property in node box mode
1 parent 1c386f2 commit b66ba55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NBEditor.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void NBEditor::fillProperties()
164164
if (element) {
165165
IGUIEditBox* editbox = static_cast<IGUIEditBox*>(element);
166166

167-
std::wstring wide = narrow_to_wide(node->name);
167+
std::wstring wide = narrow_to_wide(nb->name);
168168
editbox->setText(wide.c_str());
169169
}
170170
}
@@ -471,7 +471,7 @@ void NBEditor::updateProperties()
471471

472472
try {
473473
irr::core::stringc name = prop->getElementFromId(ENB_GUI_PROP_NAME)->getText();
474-
node->name = str_replace(std::string(name.c_str(), name.size()), ' ', '_');
474+
nb->name = str_replace(std::string(name.c_str(), name.size()), ' ', '_');
475475
nb->one.X = wcstod(prop->getElementFromId(ENB_GUI_PROP_X1)->getText(), NULL);
476476
nb->one.Y = wcstod(prop->getElementFromId(ENB_GUI_PROP_Y1)->getText(), NULL);
477477
nb->one.Z = wcstod(prop->getElementFromId(ENB_GUI_PROP_Z1)->getText(), NULL);

0 commit comments

Comments
 (0)