From 5a0f347208b53e2ce955dbae91666fd51a8c0c6a Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 25 Mar 2006 21:47:13 +0000 Subject: Improve Z_CheckHeap() Subversion-branch: /trunk/chocolate-doom Subversion-revision: 443 --- src/z_native.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/z_native.c b/src/z_native.c index 0436abd6..fbef8aa0 100644 --- a/src/z_native.c +++ b/src/z_native.c @@ -1,7 +1,7 @@ // Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // -// $Id: z_native.c 439 2006-03-24 21:20:36Z fraggle $ +// $Id: z_native.c 443 2006-03-25 21:47:13Z fraggle $ // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2006 Simon Howard @@ -30,7 +30,7 @@ //----------------------------------------------------------------------------- static const char -rcsid[] = "$Id: z_native.c 439 2006-03-24 21:20:36Z fraggle $"; +rcsid[] = "$Id: z_native.c 443 2006-03-25 21:47:13Z fraggle $"; #include @@ -304,14 +304,14 @@ void Z_CheckHeap (void) for (block=allocated_blocks[i]; block != NULL; block = block->next) { - if (block->prev != prev) + if (block->id != ZONEID) { - I_Error("Z_CheckHeap: Doubly-linked list corrupted!"); + I_Error("Z_CheckHeap: Block without a ZONEID!"); } - if (block->id != ZONEID) + if (block->prev != prev) { - I_Error("Z_CheckHeap: Block without a ZONEID!"); + I_Error("Z_CheckHeap: Doubly-linked list corrupted!"); } prev = block; -- cgit v1.2.3