Skip to content

Commit

Permalink
Close quad point popup when selected quad or quad index invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
Robyt3 committed Jul 8, 2023
1 parent 2cc03a1 commit fa65e19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game/editor/popups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1199,6 +1199,8 @@ CUI::EPopupMenuFunctionResult CEditor::PopupPoint(void *pContext, CUIRect View,
{
CEditor *pEditor = static_cast<CEditor *>(pContext);
std::vector<CQuad *> vpQuads = pEditor->GetSelectedQuads();
if(!in_range<int>(pEditor->m_SelectedQuadIndex, 0, vpQuads.size() - 1))
return CUI::POPUP_CLOSE_CURRENT;
CQuad *pCurrentQuad = vpQuads[pEditor->m_SelectedQuadIndex];

enum
Expand Down

0 comments on commit fa65e19

Please sign in to comment.