Check that a fontsound is NOT null before deleting it

This commit is contained in:
Chris Robinson 2014-07-01 22:52:29 -07:00
parent 347d8f94e8
commit fec1fec373

View File

@ -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);
} }