WModifyTab: Prevent -Wmaybe-uninitialized warning
This commit is contained in:
parent
490e8dfd96
commit
5f9c58170c
|
@ -262,7 +262,7 @@ void WModifyTab::OnLinkTableDoubleClick(QModelIndex Index)
|
||||||
{
|
{
|
||||||
// The link table will only be visible if the selected node is a script node
|
// The link table will only be visible if the selected node is a script node
|
||||||
CScriptNode *pNode = static_cast<CScriptNode*>(mpSelectedNode);
|
CScriptNode *pNode = static_cast<CScriptNode*>(mpSelectedNode);
|
||||||
uint32 InstanceID;
|
uint32 InstanceID = 0;
|
||||||
|
|
||||||
if (sender() == ui->InLinksTableView)
|
if (sender() == ui->InLinksTableView)
|
||||||
InstanceID = pNode->Instance()->Link(ELinkType::Incoming, Index.row())->SenderID();
|
InstanceID = pNode->Instance()->Link(ELinkType::Incoming, Index.row())->SenderID();
|
||||||
|
|
Loading…
Reference in New Issue