Fixed custom OGGs not being played with playef()

When OGG files got loaded, they weren't given a name in the
function LoadOGG(). This caused playef_name() to fail since
it couldn't match any of the custom pushed OGGs' filenames
with what the user called using playef. This was fixed by
copying the name definition from LoadWAV().
This commit is contained in:
Fussmatte 2023-08-28 15:59:45 -04:00
parent 5ef89643a0
commit 8623cf227a
1 changed files with 1 additions and 0 deletions

View File

@ -171,6 +171,7 @@ end:
ogg_file = mem;
valid = true;
name = std::string(SDL_strrchr(fileName, '/') + 1);
}
void Dispose(void)