Prevent a segfault when checking for playing tracks when none are queued.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@690 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
ghaushe
2003-02-06 02:48:10 +00:00
parent eb6878d7ee
commit 406a322a5d
+1 -1
View File
@@ -124,7 +124,7 @@ PlayingTrack ()
{
// this is not a great way to detect whether the track is playing,
// but as it should work during fast-forward/rewind, 'PlayingStream' can't be used
if (is_sample_playing (sound_sample))
if (sound_sample && is_sample_playing (sound_sample))
{
int last_track, last_page;
LockMutex (track_mutex);