From 5f9c58170caf1ebdeaca4e272289321dd891d351 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 28 Jun 2020 07:26:37 -0400 Subject: [PATCH] WModifyTab: Prevent -Wmaybe-uninitialized warning --- src/Editor/WorldEditor/WModifyTab.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Editor/WorldEditor/WModifyTab.cpp b/src/Editor/WorldEditor/WModifyTab.cpp index 6be4c8a3..d37568cf 100644 --- a/src/Editor/WorldEditor/WModifyTab.cpp +++ b/src/Editor/WorldEditor/WModifyTab.cpp @@ -262,7 +262,7 @@ void WModifyTab::OnLinkTableDoubleClick(QModelIndex Index) { // The link table will only be visible if the selected node is a script node CScriptNode *pNode = static_cast(mpSelectedNode); - uint32 InstanceID; + uint32 InstanceID = 0; if (sender() == ui->InLinksTableView) InstanceID = pNode->Instance()->Link(ELinkType::Incoming, Index.row())->SenderID();