Mercurial > hg > xmms-sid
diff src/xs_sidplay2.cc @ 367:8338cc14bbdb
Check for myEngine != NULL
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 08 Nov 2005 11:21:05 +0000 |
parents | 29c4484f1de2 |
children | 75f51962c083 |
line wrap: on
line diff
--- 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;