From 15f74b0989186c26df4bbf0f2ea6c5b095e74269 Mon Sep 17 00:00:00 2001 From: lordhavoc Date: Tue, 13 Feb 2001 22:07:14 +0000 Subject: [PATCH] report name when Hunk_Alloc fails git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@149 d7cf8633-e32d-0410-b094-e92efae38249 --- zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone.c b/zone.c index 3549f700..a5bb4f0f 100644 --- a/zone.c +++ b/zone.c @@ -417,7 +417,7 @@ void *Hunk_AllocName (int size, char *name) size = sizeof(hunk_t) + ((size+15)&~15); if (hunk_size - hunk_low_used - hunk_high_used < size) - Sys_Error ("Hunk_Alloc: failed on %i bytes",size); + Sys_Error ("Hunk_Alloc: failed on %i bytes (name = %s)",size, name); h = (hunk_t *)(hunk_base + hunk_low_used); hunk_low_used += size; -- 2.39.2