WModifyTab: Prevent -Wmaybe-uninitialized warning

This commit is contained in:
Lioncash 2020-06-28 07:26:37 -04:00
parent 490e8dfd96
commit 5f9c58170c
1 changed files with 1 additions and 1 deletions

View File

@ -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<CScriptNode*>(mpSelectedNode);
uint32 InstanceID;
uint32 InstanceID = 0;
if (sender() == ui->InLinksTableView)
InstanceID = pNode->Instance()->Link(ELinkType::Incoming, Index.row())->SenderID();