aboutsummaryrefslogtreecommitdiff
path: root/src/database-sqlite3.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database-sqlite3.cpp')
-rw-r--r--src/database-sqlite3.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/database-sqlite3.cpp b/src/database-sqlite3.cpp
index 3480894c9..c937cae31 100644
--- a/src/database-sqlite3.cpp
+++ b/src/database-sqlite3.cpp
@@ -210,14 +210,13 @@ std::string Database_SQLite3::loadBlock(const v3s16 &pos)
void Database_SQLite3::createDatabase()
{
- assert(m_database);
+ assert(m_database); // Pre-condition
SQLOK(sqlite3_exec(m_database,
"CREATE TABLE IF NOT EXISTS `blocks` (\n"
" `pos` INT PRIMARY KEY,\n"
" `data` BLOB\n"
");\n",
NULL, NULL, NULL));
-
}
void Database_SQLite3::listAllLoadableBlocks(std::vector<v3s16> &dst)