We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a603e4 commit de892f9Copy full SHA for de892f9
1 file changed
input/bsv/bsvmovie.c
@@ -942,7 +942,6 @@ bool replay_set_serialized_data(void* buf)
942
bsv_movie_t *handle = input_st->bsv_movie_state_handle;
943
bool playback = (input_st->bsv_movie_state.flags & BSV_FLAG_MOVIE_PLAYBACK) ? true : false;
944
bool recording = (input_st->bsv_movie_state.flags & BSV_FLAG_MOVIE_RECORDING) ? true : false;
945
- handle->cur_save_valid = false;
946
/* If there is no current replay, ignore this entirely.
947
TODO/FIXME: Later, consider loading up the replay
948
and allow the user to continue it?
@@ -951,6 +950,9 @@ bool replay_set_serialized_data(void* buf)
951
950
if (!(playback || recording))
952
return true;
953
+ if (!handle)
954
+ return false;
955
+ handle->cur_save_valid = false;
956
if (!buffer)
957
{
958
if (recording)
0 commit comments