Skip to content

Commit

Permalink
Initialise m_previousValue (LMMS#3428)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed Mar 15, 2017
1 parent 1c5e739 commit 40922ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/midi/MidiController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ MidiController::MidiController( Model * _parent ) :
MidiEventProcessor(),
m_midiPort( tr( "unnamed_midi_controller" ),
Engine::mixer()->midiClient(), this, this, MidiPort::Input ),
m_lastValue( 0.0f )
m_lastValue( 0.0f ),
m_previousValue( 0.0f )
{
setSampleExact( true );
connect( &m_midiPort, SIGNAL( modeChanged() ),
Expand Down

0 comments on commit 40922ca

Please sign in to comment.