Adjust S_AddSoundFx to also use I_Error when exhausting Freeslots

This commit is contained in:
Ashnal committed 2021-09-06 16:12:13 -04:00
1 parent f5bcfc6379
commit 4b750e0504
1 file changed
+1 -1
+1 -1
View File
@@ -1034,7 +1034,7 @@ sfxenum_t S_AddSoundFx(const char *name, boolean singular, INT32 flags, boolean
return i;
}
}
CONS_Alert(CONS_WARNING, M_GetText("No more free sound slots\n"));
I_Error("Out of Sound Freeslots while allocating \"%s\"\nLoad less addons to fix this.", name);
return 0;
}