Skip to content

Commit

Permalink
Fix LevelDB maps
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Dec 3, 2013
1 parent 2330267 commit d9de9f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database-leveldb.cpp
Expand Up @@ -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;

Expand Down

0 comments on commit d9de9f2

Please sign in to comment.