mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 15:44:36 +00:00
Merge pull request #1450 from Azaezel/alpha41/popUpGoPop
fix PopupMenu::checkItem filter
This commit is contained in:
commit
db57f67839
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