]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - zone.c
report name when Hunk_Alloc fails
[xonotic/darkplaces.git] / zone.c
diff --git a/zone.c b/zone.c
index 3549f7001f709849f98f6c01b8b09d27a35d6055..a5bb4f0f750d8b0869cc0a67273d6fbdf515fc97 100644 (file)
--- 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;