Fix crash when out of memory in Team Arena's String_Alloc

This commit is contained in:
Zack Middleton committed 2017-09-10 19:11:35 -05:00
1 parent dcf5707493
commit a48dcdf224
1 file changed
+3
+3
View File
@@ -198,6 +198,9 @@ const char *String_Alloc(const char *p) {
}
str = UI_Alloc(sizeof(stringDef_t));
if (!str) {
return NULL;
}
str->next = NULL;
str->str = &strPool[ph];
if (last) {