diff --git a/engine/src/cubos/engine/tools/entity_inspector/plugin.cpp b/engine/src/cubos/engine/tools/entity_inspector/plugin.cpp index 0e826d7f0..5e94c77f9 100644 --- a/engine/src/cubos/engine/tools/entity_inspector/plugin.cpp +++ b/engine/src/cubos/engine/tools/entity_inspector/plugin.cpp @@ -23,7 +23,7 @@ static void inspectEntity(Write world) { ImGui::BeginTable("showEntity", 2, ImGuiTableFlags_BordersOuter | ImGuiTableFlags_Resizable); - if (!selection.isNull()) + if (!selection.isNull() && world->isAlive(selection)) { auto pkg = world->pack(selection); if (editPackage(pkg, std::to_string(selection.index)))