mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
Use internal_error instead of error/exit(1).
Heh, an abort hiding in disguise :)
This commit is contained in:
parent
e3bf64262f
commit
79c1a8f37a
1 changed files with 2 additions and 4 deletions
|
@ -117,10 +117,8 @@ defspace_alloc_loc (defspace_t *space, int size)
|
|||
ofs = space->size;
|
||||
space->size += size;
|
||||
if (space->size > space->max_size) {
|
||||
if (!space->grow) {
|
||||
error (0, "unable to allocate %d globals", size);
|
||||
exit (1);
|
||||
}
|
||||
if (!space->grow)
|
||||
internal_error (0, "unable to allocate %d words", size);
|
||||
space->grow (space);
|
||||
}
|
||||
return ofs;
|
||||
|
|
Loading…
Reference in a new issue