mirror of
https://github.com/TomHarte/CLK.git
synced 2024-10-04 01:57:54 +00:00
Avoid null dereference.
This commit is contained in:
parent
024b7960cb
commit
383770515e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user