Mercurial > hg > xmms-sid
changeset 367:8338cc14bbdb
Check for myEngine != NULL
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 08 Nov 2005 11:21:05 +0000 |
parents | 29c4484f1de2 |
children | 3e55874170eb |
files | src/xs_sidplay2.cc |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
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;