-Fixed bug with event player crashing, closes #3687

This commit is contained in:
Juan Linietsky 2016-02-20 20:59:02 -03:00
parent 1d04d55ac0
commit c04a9ff751
1 changed files with 2 additions and 0 deletions

View File

@ -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()) {