mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
-Fixed bug with event player crashing, closes #3687
This commit is contained in:
@@ -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()) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user