Check that a fontsound is NOT null before deleting it
This commit is contained in:
parent
347d8f94e8
commit
fec1fec373
@ -78,7 +78,7 @@ AL_API ALvoid AL_APIENTRY alDeleteFontsoundsSOFT(ALsizei n, const ALuint *ids)
|
|||||||
|
|
||||||
for(i = 0;i < n;i++)
|
for(i = 0;i < n;i++)
|
||||||
{
|
{
|
||||||
if((inst=LookupFontsound(device, ids[i])) == NULL)
|
if((inst=LookupFontsound(device, ids[i])) != NULL)
|
||||||
DeleteFontsound(device, inst);
|
DeleteFontsound(device, inst);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user