From 48df755c00a19a71e5583480b15091dc5c1e8df1 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 21 Sep 2009 07:55:26 +0200 Subject: Adding a few accessors, and adding crawled bit, in order to be able to crawl several times in a row. --- Database/internals/database-segment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Database/internals/database-segment.cpp') diff --git a/Database/internals/database-segment.cpp b/Database/internals/database-segment.cpp index 8ee5b4b..6ced68f 100644 --- a/Database/internals/database-segment.cpp +++ b/Database/internals/database-segment.cpp @@ -9,7 +9,7 @@ Segment::Segment(Uint32 size, Uint32 id, Uint64 cpu_base, Uint32 extra_size, con assert(size); - if (data) { + if (data || !size) { plainmemory = (Byte *) data; loaded = true; allocated = false; -- cgit v1.2.3