-Fixed bug with event player crashing, closes #3687
This commit is contained in:
parent
1d04d55ac0
commit
c04a9ff751
|
@ -54,6 +54,8 @@ void EventPlayer::set_stream(const Ref<EventStream> &p_stream) {
|
|||
stream=p_stream;
|
||||
if (stream.is_valid())
|
||||
playback=stream->instance_playback();
|
||||
else
|
||||
playback.unref();
|
||||
|
||||
if (playback.is_valid()) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue