From: Andrew M. <rh...@us...> - 2003-03-29 05:56:38
|
Update of /cvsroot/planeshift/planeshift/src/client/sound In directory sc8-pr-cvs1:/tmp/cvs-serv3561 Modified Files: pssoundmngr.cpp Log Message: Fixes a crash by NULL pointer dereference when changing background music when no previous background music is playing. Index: pssoundmngr.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/sound/pssoundmngr.cpp,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** pssoundmngr.cpp 24 Mar 2003 06:17:58 -0000 1.35 --- pssoundmngr.cpp 29 Mar 2003 05:56:34 -0000 1.36 *************** *** 198,202 **** if ( performCrossFade ) { ! oldBackSound->Stop(); } --- 198,203 ---- if ( performCrossFade ) { ! if (oldBackSound) ! oldBackSound->Stop(); } |