summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scene/gui/popup_menu.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/popup_menu.cpp b/scene/gui/popup_menu.cpp
index 4c69584f4a..b3f18bf8fa 100644
--- a/scene/gui/popup_menu.cpp
+++ b/scene/gui/popup_menu.cpp
@@ -771,7 +771,7 @@ String PopupMenu::get_item_tooltip(int p_idx) const {
Ref<ShortCut> PopupMenu::get_item_shortcut(int p_idx) const {
- ERR_FAIL_INDEX_V(p_idx,items.size(),"");
+ ERR_FAIL_INDEX_V(p_idx,items.size(),Ref<ShortCut>());
return items[p_idx].shortcut;
}