diff --git a/src/Application/Application_MassViewer_Weapons.cpp b/src/Application/Application_MassViewer_Weapons.cpp index 6834eb8..3935bce 100644 --- a/src/Application/Application_MassViewer_Weapons.cpp +++ b/src/Application/Application_MassViewer_Weapons.cpp @@ -424,6 +424,11 @@ Application::drawWeaponEditor(GameObjects::Weapon& weapon) { ImGui::Separator(); + if(weapon.parts.isEmpty()) { + ImGui::TextUnformatted("This weapon has no parts."); + return; + } + if(ImGui::CollapsingHeader("Weapon parts")) { drawAlignedText("Viewing/editing part:"); for(std::int32_t i = 0; std::size_t(i) < weapon.parts.size(); i++) {