Assert added

This commit is contained in:
Bertrand Songis
2019-05-10 22:18:05 +02:00
parent 8056739e46
commit 4d313925fa
+1 -1
View File
@@ -61,7 +61,6 @@ SimulatorWidget::SimulatorWidget(QWidget * parent, SimulatorInterface * simulato
#ifdef JOYSTICKS
, joystick(NULL)
#endif
{
ui->setupUi(this);
@@ -522,6 +521,7 @@ void SimulatorWidget::shutdown()
void SimulatorWidget::setRadioProfileId(int value)
{
Q_ASSERT(value >= 0);
radioProfileId = value;
emit simulatorVolumeGainChange(g.profile[radioProfileId].volumeGain());
}