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

This commit is contained in:
Zack Middleton 2017-09-09 17:11:26 -05:00
parent dcf5707493
commit a48dcdf224

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) {