fix handling music lumps with 0 length (#130)

This commit is contained in:
Roman Fomin 2021-02-18 12:34:39 +07:00 committed by GitHub
parent bddeb3927c
commit ae80eca00d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -673,6 +673,7 @@ void S_StopMusic(void)
I_StopSong(mus_playing->handle);
I_UnRegisterSong(mus_playing->handle);
if (mus_playing->data != NULL) // for wads with "empty" music lumps (Nihility.wad)
Z_ChangeTag(mus_playing->data, PU_CACHE);
mus_playing->data = NULL;