Skip to content

Commit

Permalink
Don't continue trying to deserialize blank block data
Browse files Browse the repository at this point in the history
  • Loading branch information
kwolekr committed Nov 24, 2013
1 parent 16bd368 commit 068dd79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/database-leveldb.cpp
Expand Up @@ -104,6 +104,7 @@ MapBlock* Database_LevelDB::loadBlock(v3s16 blockpos)
} else {
throw SerializationError("Blank block data in database");
}
return NULL;
}

if (s.ok()) {
Expand Down
1 change: 1 addition & 0 deletions src/database-sqlite3.cpp
Expand Up @@ -237,6 +237,7 @@ MapBlock* Database_SQLite3::loadBlock(v3s16 blockpos)
} else {
throw SerializationError("Blank block data in database");
}
return NULL;
}

std::string datastr(data, len);
Expand Down

0 comments on commit 068dd79

Please sign in to comment.