housekeeping

This commit is contained in:
scawful
2024-05-24 20:37:29 -04:00
parent cb309743ea
commit f28e26ef28
3 changed files with 7 additions and 15 deletions

View File

@@ -306,8 +306,9 @@ class BitmapManager {
if (it != bitmap_cache_.end()) {
return it->second;
}
throw std::runtime_error(
absl::StrCat("Bitmap with id ", id, " not found."));
std::cout << absl::StrCat("Bitmap with id ", id, " not found.")
<< std::endl;
return bitmap_cache_.begin()->second;
}
std::shared_ptr<gfx::Bitmap> const &shared_bitmap(int id) {
auto it = bitmap_cache_.find(id);