소스 검색

SampleLibraryEditor: Initialize "is_playing" variable

Fixes crash caused by jumping to wrong place due to uninitialized
variable.

Closes #4703

(cherry picked from commit 9acb666320a03d6f47b6bd43842488bdb921be9f)
Błażej Szczygieł 9 년 전
부모
커밋
bff77d731f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tools/editor/plugins/sample_library_editor_plugin.cpp

+ 1 - 1
tools/editor/plugins/sample_library_editor_plugin.cpp

@@ -481,7 +481,7 @@ SampleLibraryEditor::SampleLibraryEditor() {
 	file->connect("files_selected", this,"_file_load_request");
 	tree->connect("item_edited", this,"_item_edited");
 
-
+	is_playing = false;
 }