aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/database-leveldb.cpp1
-rw-r--r--src/database-sqlite3.cpp1
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);