diff --git a/tools/editor/editor_ui.cpp b/tools/editor/editor_ui.cpp index d6e0e05c..00a57a20 100644 --- a/tools/editor/editor_ui.cpp +++ b/tools/editor/editor_ui.cpp @@ -2003,6 +2003,9 @@ void EditorUI::renderNpcPanel(EditorApp& app) { if (sel->displayId == 0) ImGui::TextColored(ImVec4(0.9f, 0.6f, 0.3f, 1), "Display ID 0 = invisible in game; set for SQL export"); + int facSel = static_cast(sel->faction); + if (ImGui::InputInt("Faction##s", &facSel)) + sel->faction = static_cast(std::max(0, facSel)); const char* beh2[] = {"Stationary", "Patrol", "Wander", "Scripted"}; int bi2 = static_cast(sel->behavior);