mirror of
https://github.com/TomHarte/CLK.git
synced 2025-01-26 15:32:04 +00:00
Ensures no attempt to call nullptr
.
This commit is contained in:
parent
47dd8ad069
commit
e1ebb7ce9c
@ -707,7 +707,7 @@ class ConcreteMachine:
|
||||
|
||||
// b4: cassette motor relay
|
||||
tape_player_.set_motor_control(!(value & 0x10));
|
||||
activity_observer_->set_led_status("Tape motor", !(value & 0x10));
|
||||
if(activity_observer_) activity_observer_->set_led_status("Tape motor", !(value & 0x10));
|
||||
|
||||
// b7: keyboard click
|
||||
bool new_audio_level = !!(value & 0x80);
|
||||
|
Loading…
x
Reference in New Issue
Block a user