1
0
mirror of https://github.com/minetest/minetest.git synced 2025-01-22 07:40:32 +01:00

Don't continue trying to deserialize blank block data

This commit is contained in:
kwolekr 2013-11-24 02:10:15 -05:00
parent 16bd368374
commit 068dd796f5
2 changed files with 2 additions and 0 deletions

View File

@ -104,6 +104,7 @@ MapBlock* Database_LevelDB::loadBlock(v3s16 blockpos)
} else { } else {
throw SerializationError("Blank block data in database"); throw SerializationError("Blank block data in database");
} }
return NULL;
} }
if (s.ok()) { if (s.ok()) {

View File

@ -237,6 +237,7 @@ MapBlock* Database_SQLite3::loadBlock(v3s16 blockpos)
} else { } else {
throw SerializationError("Blank block data in database"); throw SerializationError("Blank block data in database");
} }
return NULL;
} }
std::string datastr(data, len); std::string datastr(data, len);