Skip to content
Permalink
Browse files

Fix LevelDB maps

  • Loading branch information...
sfan5 committed Dec 3, 2013
1 parent 2330267 commit d9de9f23d93a9a6fd8deccbbf3fce58aad5751a1
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

0 comments on commit d9de9f2

Please sign in to comment.
You can’t perform that action at this time.