aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSfan5 <sfan5@live.de>2013-12-03 20:03:20 +0100
committerSfan5 <sfan5@live.de>2013-12-03 20:03:20 +0100
commitd9de9f23d93a9a6fd8deccbbf3fce58aad5751a1 (patch)
treed2d50d6afa664c9716aa6a1ecb2ba969bf66fa12 /src
parent2330267d2207208799ad347ea0d129c0b4551d61 (diff)
downloadminetest-d9de9f23d93a9a6fd8deccbbf3fce58aad5751a1.tar.gz
minetest-d9de9f23d93a9a6fd8deccbbf3fce58aad5751a1.tar.bz2
minetest-d9de9f23d93a9a6fd8deccbbf3fce58aad5751a1.zip
Fix LevelDB maps
Diffstat (limited to 'src')
-rw-r--r--src/database-leveldb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database-leveldb.cpp b/src/database-leveldb.cpp
index 2a8f59c20..0526b0b29 100644
--- a/src/database-leveldb.cpp
+++ b/src/database-leveldb.cpp
@@ -94,7 +94,7 @@ MapBlock* Database_LevelDB::loadBlock(v3s16 blockpos)
std::string datastr;
leveldb::Status s = m_database->Get(leveldb::ReadOptions(),
i64tos(getBlockAsInteger(blockpos)), &datastr);
- if (datastr.length() == 0) {
+ if (datastr.length() == 0 && s.ok()) {
errorstream << "Blank block data in database (datastr.length() == 0) ("
<< blockpos.X << "," << blockpos.Y << "," << blockpos.Z << ")" << std::endl;