diff options
author | Sfan5 <sfan5@live.de> | 2013-12-03 20:03:20 +0100 |
---|---|---|
committer | Sfan5 <sfan5@live.de> | 2013-12-03 20:03:20 +0100 |
commit | d9de9f23d93a9a6fd8deccbbf3fce58aad5751a1 (patch) | |
tree | d2d50d6afa664c9716aa6a1ecb2ba969bf66fa12 /src | |
parent | 2330267d2207208799ad347ea0d129c0b4551d61 (diff) | |
download | minetest-d9de9f23d93a9a6fd8deccbbf3fce58aad5751a1.tar.gz minetest-d9de9f23d93a9a6fd8deccbbf3fce58aad5751a1.tar.bz2 minetest-d9de9f23d93a9a6fd8deccbbf3fce58aad5751a1.zip |
Fix LevelDB maps
Diffstat (limited to 'src')
-rw-r--r-- | src/database-leveldb.cpp | 2 |
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; |