Browse Source

Merge pull request #61185 from okla/3.x

Rémi Verschelde 3 years ago
parent
commit
78a9d21da3
1 changed files with 1 additions and 4 deletions
  1. 1 4
      scene/gui/option_button.cpp

+ 1 - 4
scene/gui/option_button.cpp

@@ -258,12 +258,9 @@ int OptionButton::get_selected() const {
 }
 
 int OptionButton::get_selected_id() const {
-	int idx = get_selected();
-	if (idx < 0) {
-		return 0;
-	}
 	return get_item_id(current);
 }
+
 Variant OptionButton::get_selected_metadata() const {
 	int idx = get_selected();
 	if (idx < 0) {