1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-06 01:28:57 +00:00

Ensures no attempt to call nullptr.

This commit is contained in:
Thomas Harte 2019-03-02 17:37:56 -05:00
parent 47dd8ad069
commit e1ebb7ce9c

View File

@ -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);