diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-02-11 00:00:11 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-02-11 00:01:35 -0300 |
commit | db43e941752590f32e949638e35f5891bc8979c3 (patch) | |
tree | d66e8a430d7eec6cee38d5e5142fbbccc7b9ad25 /tools/editor/io_plugins | |
parent | 4321b543b5b971e6fc980f51f24c6877fd6ae07e (diff) |
-Made some icon data types smaller so they take up less space
-Fixed sample import plugin, makes samples sound strange in smp when limited hz
Diffstat (limited to 'tools/editor/io_plugins')
-rw-r--r-- | tools/editor/io_plugins/editor_sample_import_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/io_plugins/editor_sample_import_plugin.cpp b/tools/editor/io_plugins/editor_sample_import_plugin.cpp index b81c88c817..47673f8f81 100644 --- a/tools/editor/io_plugins/editor_sample_import_plugin.cpp +++ b/tools/editor/io_plugins/editor_sample_import_plugin.cpp @@ -481,7 +481,7 @@ Error EditorSampleImportPlugin::import(const String& p_path, const Ref<ResourceI float mu = pos-Math::floor(pos); int ipos = int(Math::floor(pos)); - float y0=data[MAX(0,ipos-i)]; + float y0=data[MAX(0,ipos-1)]; float y1=data[ipos]; float y2=data[MIN(len-1,ipos+1)]; float y3=data[MIN(len-1,ipos+2)]; |