summaryrefslogtreecommitdiff
path: root/Database/internals/database-segment.cpp
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-09-21 07:55:26 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2009-09-21 07:55:26 +0200
commit48df755c00a19a71e5583480b15091dc5c1e8df1 (patch)
tree3a5462a495525a0e2c3ddc2d09396f00c5797c3f /Database/internals/database-segment.cpp
parent14d90c9e1171655b864316c9c4aa34033fdd3a45 (diff)
Adding a few accessors, and adding crawled bit, in order to be able to crawl several times in a row.
Diffstat (limited to 'Database/internals/database-segment.cpp')
-rw-r--r--Database/internals/database-segment.cpp2
1 files changed, 1 insertions, 1 deletions
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;