check the a and b map ptrs for nullptr rather than the vectors

This commit is contained in:
scawful
2024-01-31 13:58:58 -05:00
parent 42c12cba7a
commit cbc523e427

View File

@@ -565,7 +565,7 @@ absl::Status Overworld::SaveOverworldMaps() {
// Compress single_map_1 and single_map_2
auto a_char = gfx::lc_lz2::Compress(single_map_1.data(), 256, &size_a, 1);
auto b_char = gfx::lc_lz2::Compress(single_map_2.data(), 256, &size_b, 1);
if (a.empty() || b.empty()) {
if (a_char == nullptr || b_char == nullptr) {
return absl::AbortedError("Error compressing map gfx.");
}
// Copy the compressed data to a and b