aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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;