From 068dd796f51e59953d1aff9f05510847e2bfe872 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Sun, 24 Nov 2013 02:10:15 -0500 Subject: [PATCH] Don't continue trying to deserialize blank block data --- src/database-leveldb.cpp | 1 + src/database-sqlite3.cpp | 1 + 2 files changed, 2 insertions(+) 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); -- 2.25.1