| 5324 | } |
| 5325 | |
| 5326 | S32 GuiTreeViewCtrl::findItemByObjectId(S32 iObjId) |
| 5327 | { |
| 5328 | for (S32 i = 0; i < mItems.size(); i++) |
| 5329 | { |
| 5330 | if ( !mItems[i] ) |
| 5331 | continue; |
| 5332 | |
| 5333 | SimObject* pObj = mItems[i]->getObject(); |
| 5334 | if( pObj && pObj->getId() == iObjId ) |
| 5335 | return mItems[i]->mId; |
| 5336 | } |
| 5337 | |
| 5338 | return -1; |
| 5339 | } |
| 5340 | |
| 5341 | //------------------------------------------------------------------------------ |
| 5342 | DefineEngineMethod( GuiTreeViewCtrl, findItemByObjectId, S32, (S32 objectId), , |
no test coverage detected