Dump a stack trace when running out of edicts.

This commit is contained in:
Bill Currie 2012-07-18 10:30:58 +09:00
parent 7d8b0f96d6
commit 8691a2fbd1

View file

@ -100,6 +100,7 @@ ED_Alloc (progs_t *pr)
if (i == pr->max_edicts) {
Sys_Printf ("WARNING: ED_Alloc: no free edicts\n");
PR_DumpState (pr);
i--; // step on whatever is the last edict
e = EDICT_NUM (pr, i);
if (pr->unlink)