# HG changeset patch # User Matti Hamalainen # Date 1131448865 0 # Node ID 8338cc14bbdbe436eb99677652f01ceace6c5e80 # Parent 29c4484f1de2041782d4dab0878c7da960d4faf1 Check for myEngine != NULL diff -r 29c4484f1de2 -r 8338cc14bbdb src/xs_sidplay2.cc --- a/src/xs_sidplay2.cc Tue Nov 08 10:34:01 2005 +0000 +++ b/src/xs_sidplay2.cc Tue Nov 08 11:21:05 2005 +0000 @@ -386,9 +386,11 @@ assert(myStatus); myEngine = (t_xs_sidplay2 *) myStatus->sidEngine; + if (!myEngine) return FALSE; /* Try to get the tune */ if (!pcFilename) return FALSE; + if (!myEngine->currTune->load(pcFilename)) return FALSE;