From d375aba2b0637aee23bd285ccd7b0fa1a2555d97 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Tue, 15 Oct 2024 06:15:28 +0300 Subject: [PATCH] Ouch! --- Editor/editing/_scenes/level/items/item_npc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/editing/_scenes/level/items/item_npc.cpp b/Editor/editing/_scenes/level/items/item_npc.cpp index 23a661f5d..a7ff34d01 100644 --- a/Editor/editing/_scenes/level/items/item_npc.cpp +++ b/Editor/editing/_scenes/level/items/item_npc.cpp @@ -272,7 +272,7 @@ void ItemNPC::contextMenu(QGraphicsSceneMouseEvent *mouseEvent) if(SelItem->data(ITEM_TYPE).toString() == "NPC") { ItemNPC *sItem = qgraphicsitem_cast(SelItem); - Q_ASSERT(n); + Q_ASSERT(sItem); if((!sameID) || (sItem->m_data.id == oldID)) {