1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-25 18:30:07 +00:00

Avoid null dereference.

This commit is contained in:
Thomas Harte 2023-04-10 23:13:36 -04:00
parent 024b7960cb
commit 383770515e

View File

@ -347,7 +347,7 @@ void TMS9918<personality>::run_for(const HalfCycles cycles) {
}
this->advance(this->fetch_line_buffer_);
if(this->fetched_sprites_->active_sprite_slot) {
if(this->fetched_sprites_ && this->fetched_sprites_->active_sprite_slot) {
this->fetch_line_buffer_->sprites = this->fetched_sprites_;
this->fetched_sprites_ = nullptr;
} else {