mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Added NULL check in function findItemByName.
(cherry picked from commit adb2513a2461092486e00b5550bf57fb83d0ccac)
This commit is contained in:
parent
1d501ea95e
commit
d2d1f6086e
1 changed files with 2 additions and 0 deletions
|
|
@ -4624,6 +4624,8 @@ S32 GuiTreeViewCtrl::findItemByName(const char *name)
|
|||
{
|
||||
for (S32 i = 0; i < mItems.size(); i++)
|
||||
{
|
||||
if ( !mItems[i] )
|
||||
continue;
|
||||
if( mItems[i]->mState.test( Item::InspectorData ) )
|
||||
continue;
|
||||
if (mItems[i] && dStrcmp(mItems[i]->getText(),name) == 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue