diff options
author | kwolekr <kwolekr@minetest.net> | 2013-11-24 02:10:15 -0500 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-11-24 02:10:15 -0500 |
commit | 068dd796f51e59953d1aff9f05510847e2bfe872 (patch) | |
tree | ec07c54ad389454213a37ad2ba0d86518d87416e | |
parent | 16bd3683747e6ab86d6874b90d00a02285d68bdd (diff) | |
download | minetest-068dd796f51e59953d1aff9f05510847e2bfe872.tar.gz minetest-068dd796f51e59953d1aff9f05510847e2bfe872.tar.bz2 minetest-068dd796f51e59953d1aff9f05510847e2bfe872.zip |
Don't continue trying to deserialize blank block data
-rw-r--r-- | src/database-leveldb.cpp | 1 | ||||
-rw-r--r-- | src/database-sqlite3.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/database-leveldb.cpp b/src/database-leveldb.cpp index ec28198b5..2a8f59c20 100644 --- a/src/database-leveldb.cpp +++ b/src/database-leveldb.cpp @@ -104,6 +104,7 @@ MapBlock* Database_LevelDB::loadBlock(v3s16 blockpos) } else { throw SerializationError("Blank block data in database"); } + return NULL; } if (s.ok()) { diff --git a/src/database-sqlite3.cpp b/src/database-sqlite3.cpp index 44eb86f54..38fb2ca19 100644 --- a/src/database-sqlite3.cpp +++ b/src/database-sqlite3.cpp @@ -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); |