From: <sag...@us...> - 2010-10-03 21:22:54
|
Revision: 732 http://modplug.svn.sourceforge.net/modplug/?rev=732&view=rev Author: saga-games Date: 2010-10-03 21:22:48 +0000 (Sun, 03 Oct 2010) Log Message: ----------- [Fix] Do you know what a null pointer is? Modified Paths: -------------- trunk/OpenMPT/soundlib/Snd_fx.cpp Modified: trunk/OpenMPT/soundlib/Snd_fx.cpp =================================================================== --- trunk/OpenMPT/soundlib/Snd_fx.cpp 2010-10-03 16:15:11 UTC (rev 731) +++ trunk/OpenMPT/soundlib/Snd_fx.cpp 2010-10-03 21:22:48 UTC (rev 732) @@ -475,7 +475,7 @@ if ((pIns) && (note) && (note <= 128)) { - if(bPorta && pIns == pChn->pModInstrument && pChn->pModSample->pSample != nullptr && IsCompatibleMode(TRK_IMPULSETRACKER)) + if(bPorta && pIns == pChn->pModInstrument && (pChn->pModSample != nullptr && pChn->pModSample->pSample != nullptr) && IsCompatibleMode(TRK_IMPULSETRACKER)) { #ifdef DEBUG { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |