diff options
author | Herman Semenov <GermanAizek@yandex.ru> | 2022-09-06 13:21:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-06 11:21:09 +0100 |
commit | 038da00e799b4bf3af824075a260083c56392964 (patch) | |
tree | 8c0e3218455073684c2521cec41b7df06fff8598 /src/database/database-dummy.cpp | |
parent | ff6dcfea82974df6db5a557e31aaddb6bdb7a71f (diff) | |
download | minetest-038da00e799b4bf3af824075a260083c56392964.tar.xz |
Code optimizations / refactor (#12704)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/database/database-dummy.cpp')
-rw-r--r-- | src/database/database-dummy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database/database-dummy.cpp b/src/database/database-dummy.cpp index 629b2fb04..a44762d8a 100644 --- a/src/database/database-dummy.cpp +++ b/src/database/database-dummy.cpp @@ -36,7 +36,7 @@ void Database_Dummy::loadBlock(const v3s16 &pos, std::string *block) s64 i = getBlockAsInteger(pos); auto it = m_database.find(i); if (it == m_database.end()) { - *block = ""; + block->clear(); return; } |