| 1185 | //----------------------------------------------------------------------------- |
| 1186 | |
| 1187 | S32 SceneObject::getMountedObjectNode(S32 idx) |
| 1188 | { |
| 1189 | if (idx >= 0) { |
| 1190 | S32 count = 0; |
| 1191 | for (SceneObject* itr = mMount.list; itr; itr = itr->mMount.link) |
| 1192 | if (count++ == idx) |
| 1193 | return itr->mMount.node; |
| 1194 | } |
| 1195 | return -1; |
| 1196 | } |
| 1197 | |
| 1198 | //----------------------------------------------------------------------------- |
| 1199 |