| 1005 | //----------------------------------------------------------------------------- |
| 1006 | |
| 1007 | S32 SceneObject::getMountedObjectNode(S32 idx) |
| 1008 | { |
| 1009 | if (idx >= 0) { |
| 1010 | S32 count = 0; |
| 1011 | for (SceneObject* itr = mMount.list; itr; itr = itr->mMount.link) |
| 1012 | if (count++ == idx) |
| 1013 | return itr->mMount.node; |
| 1014 | } |
| 1015 | return -1; |
| 1016 | } |
| 1017 | |
| 1018 | //----------------------------------------------------------------------------- |
| 1019 |