mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
fix PopupMenu::checkItem filter
reminder size is the total element count of the vector
This commit is contained in:
parent
2852b33cec
commit
c04eaa5862
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ void PopupMenu::enableItem(S32 pos, bool enable)
|
||||||
|
|
||||||
void PopupMenu::checkItem(S32 pos, bool checked)
|
void PopupMenu::checkItem(S32 pos, bool checked)
|
||||||
{
|
{
|
||||||
if (mMenuItems.empty() || mMenuItems.size() < pos || pos < 0)
|
if (mMenuItems.empty() || mMenuItems.size() <= pos || pos < 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (checked && mMenuItems[pos].mCheckGroup != -1 && mRadioSelection)
|
if (checked && mMenuItems[pos].mCheckGroup != -1 && mRadioSelection)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue