From 9b8f2741aee4604bd7a84ac746fae58ae06a4267 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 20 Jun 2016 22:38:31 -0300 Subject: do not crash when generating preview of very large sound files, fixes #4123 --- tools/editor/plugins/sample_editor_plugin.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'tools/editor/plugins/sample_editor_plugin.cpp') diff --git a/tools/editor/plugins/sample_editor_plugin.cpp b/tools/editor/plugins/sample_editor_plugin.cpp index a3891a648..b094184a2 100644 --- a/tools/editor/plugins/sample_editor_plugin.cpp +++ b/tools/editor/plugins/sample_editor_plugin.cpp @@ -211,7 +211,7 @@ void SampleEditor::generate_preview_texture(const Ref& p_sample,Refmin[0] && v& p_sample,Ref=len) to=len-1; @@ -241,7 +241,7 @@ void SampleEditor::generate_preview_texture(const Ref& p_sample,Refmax[j]) max[j]=v; if (v& p_sample,Refmax[j]) max[j]=v; if (v& p_sample,Refmin[0] && v& p_sample,Refmin[half] && v