summaryrefslogtreecommitdiffstats
path: root/editor/plugins/sprite_frames_editor_plugin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/plugins/sprite_frames_editor_plugin.cpp')
-rw-r--r--editor/plugins/sprite_frames_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/sprite_frames_editor_plugin.cpp b/editor/plugins/sprite_frames_editor_plugin.cpp
index 54b72b6b3e..3134c0b951 100644
--- a/editor/plugins/sprite_frames_editor_plugin.cpp
+++ b/editor/plugins/sprite_frames_editor_plugin.cpp
@@ -855,7 +855,7 @@ void SpriteFramesEditor::_animation_selected() {
}
TreeItem *selected = animations->get_selected();
- ERR_FAIL_COND(!selected);
+ ERR_FAIL_NULL(selected);
edited_anim = selected->get_text(0);
if (animated_sprite) {