diff options
author | Stuart Carnie <stuart.carnie@gmail.com> | 2024-09-12 06:19:24 +1000 |
---|---|---|
committer | Stuart Carnie <stuart.carnie@gmail.com> | 2024-09-12 06:22:04 +1000 |
commit | 5cfacc876796324d2d06c83c83f1a128b9687b9a (patch) | |
tree | 3a3d7f2e20ee2e40149538549fb99aeba4c2c44a /editor/editor_inspector.cpp | |
parent | 14a7e0abb313915fc5e4f36b34f9169b1d45774c (diff) | |
download | redot-engine-5cfacc876796324d2d06c83c83f1a128b9687b9a.tar.gz |
[Editor,Servers]: Minor optimizations
Diffstat (limited to 'editor/editor_inspector.cpp')
-rw-r--r-- | editor/editor_inspector.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/editor_inspector.cpp b/editor/editor_inspector.cpp index 4a2c41bc9c..da50ffc510 100644 --- a/editor/editor_inspector.cpp +++ b/editor/editor_inspector.cpp @@ -2246,7 +2246,7 @@ void EditorInspectorArray::_setup() { } move_vbox->add_child(ae.move_texture_rect); - if (element_position < _get_array_count() - 1) { + if (element_position < count - 1) { ae.move_down = memnew(Button); ae.move_down->set_icon(get_editor_theme_icon(SNAME("MoveDown"))); ae.move_down->connect(SceneStringName(pressed), callable_mp(this, &EditorInspectorArray::_move_element).bind(element_position, element_position + 2)); |