mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 06:31:47 +00:00
Fix crash when out of memory in Team Arena's String_Alloc
This commit is contained in:
parent
dcf5707493
commit
a48dcdf224
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue