diff options
Diffstat (limited to 'editor/io_plugins/editor_sample_import_plugin.cpp')
-rw-r--r-- | editor/io_plugins/editor_sample_import_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/io_plugins/editor_sample_import_plugin.cpp b/editor/io_plugins/editor_sample_import_plugin.cpp index 0909b96cdc..69cfb560d5 100644 --- a/editor/io_plugins/editor_sample_import_plugin.cpp +++ b/editor/io_plugins/editor_sample_import_plugin.cpp @@ -679,7 +679,7 @@ Error EditorSampleImportPlugin::import(const String& p_path, const Ref<ResourceI if (ResourceCache::has(p_path)) { - target = Ref<Sample>( ResourceCache::get(p_path)->cast_to<Sample>() ); + target = Ref<Sample>( Object::cast_to<Sample>(ResourceCache::get(p_path)) ); } else { target = smp; |