| 1172 | //----------------------------------------------------------------------------- |
| 1173 | |
| 1174 | SceneObject* SceneObject::getMountedObject(S32 idx) |
| 1175 | { |
| 1176 | if (idx >= 0) { |
| 1177 | S32 count = 0; |
| 1178 | for (SceneObject* itr = mMount.list; itr; itr = itr->mMount.link) |
| 1179 | if (count++ == idx) |
| 1180 | return itr; |
| 1181 | } |
| 1182 | return NULL; |
| 1183 | } |
| 1184 | |
| 1185 | //----------------------------------------------------------------------------- |
| 1186 |
no outgoing calls
no test coverage detected