Fix stupid error.

This commit is contained in:
duncan%be.com 1999-07-24 22:26:00 +00:00
parent 4f7fbe58af
commit 9b48adc493

View File

@ -77,7 +77,10 @@ NS_METHOD nsSound::Play(nsIFileSpec *filespec)
filespec->GetNativePath(&filename);
delete mSound;
mSound = new BSimpleGameSound(filename);
entry_ref ref;
BEntry e(filename);
e.GetRef(&ref);
mSound = new BSimpleGameSound(&ref);
if(mSound->InitCheck() == B_OK)
mSound->StartPlaying();