Browse Source

Fixed crash when instanciating comments

master
nebogeo 22 years ago
parent
commit
36118dbaf5
1 changed files with 7 additions and 4 deletions
  1. +7
    -4
      SpiralSynthModular.C

+ 7
- 4
SpiralSynthModular.C View File

@@ -135,10 +135,13 @@ void SynthModular::Update()
for(map<int,DeviceWin*>::iterator i=m_DeviceWinMap.begin();
i!=m_DeviceWinMap.end(); i++)
{
// updates the data from the gui thread, if it's not blocking
i->second->m_Device->UpdateChannelHandler();
// run any commands we've received from the GUI's
i->second->m_Device->ExecuteCommands();
if (i->second->m_Device) // if it's not a comment
{
// updates the data from the gui thread, if it's not blocking
i->second->m_Device->UpdateChannelHandler();
// run any commands we've received from the GUI's
i->second->m_Device->ExecuteCommands();
}
}
// run the plugins (only ones connected to anything)


Loading…
Cancel
Save