mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Fix many errors found by PVS-Studio
Fix errors 2, 3, 4, 6, 8, 9, 11, 12, 13, 14, and 15.
(cherry picked from commit cb01268562)
This commit is contained in:
committed by
Rémi Verschelde
parent
dafdd9a08e
commit
58c87e5d26
@@ -595,7 +595,7 @@ bool SpriteFramesEditor::can_drop_data_fw(const Point2 &p_point, const Variant &
|
||||
return false;
|
||||
|
||||
for (int i = 0; i < files.size(); i++) {
|
||||
String file = files[0];
|
||||
String file = files[i];
|
||||
String ftype = EditorFileSystem::get_singleton()->get_file_type(file);
|
||||
|
||||
if (!ClassDB::is_parent_class(ftype, "Texture")) {
|
||||
|
||||
Reference in New Issue
Block a user