Don't continue trying to deserialize blank block data
parent
16bd368374
commit
068dd796f5
|
@ -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()) {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue