mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-14 08:04:40 +00:00
Merge pull request #1376 from Azaezel/TreeViewTerror
From Dušan Jocić: early out of treeview entries to prevent crashes
This commit is contained in:
commit
63ae781d24
1 changed files with 2 additions and 0 deletions
|
|
@ -4641,6 +4641,8 @@ S32 GuiTreeViewCtrl::findItemByValue(const char *name)
|
||||||
{
|
{
|
||||||
for (S32 i = 0; i < mItems.size(); i++)
|
for (S32 i = 0; i < mItems.size(); i++)
|
||||||
{
|
{
|
||||||
|
if (!mItems[i])
|
||||||
|
continue;
|
||||||
if( mItems[i]->mState.test( Item::InspectorData ) )
|
if( mItems[i]->mState.test( Item::InspectorData ) )
|
||||||
continue;
|
continue;
|
||||||
if (mItems[i] && dStrcmp(mItems[i]->getValue(),name) == 0)
|
if (mItems[i] && dStrcmp(mItems[i]->getValue(),name) == 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue