Revision 74636fa3
Added by Leszek Koltunski almost 2 years ago
| src/main/java/org/distorted/objects/RubikObjectCategories.java | ||
|---|---|---|
| 391 | 391 |
int numC = mObjectIndices.length; |
| 392 | 392 |
|
| 393 | 393 |
for(int c=0; c<numC; c++) |
| 394 |
{
|
|
| 395 |
int[] objects = mObjectIndices[c]; |
|
| 396 |
int len = objects.length; |
|
| 397 |
|
|
| 398 |
for(int o=0; o<len; o++) |
|
| 399 |
if( o==objectIndex ) return c; |
|
| 400 |
} |
|
| 394 |
for(int object : mObjectIndices[c]) |
|
| 395 |
if( object==objectIndex ) return c; |
|
| 401 | 396 |
|
| 402 | 397 |
return -1; |
| 403 | 398 |
} |
| ... | ... | |
| 410 | 405 |
int len = objects.length; |
| 411 | 406 |
|
| 412 | 407 |
for(int o=0; o<len; o++) |
| 413 |
if( o==objectIndex ) return o; |
|
| 408 |
if( objects[o]==objectIndex ) return o;
|
|
| 414 | 409 |
|
| 415 | 410 |
return -1; |
| 416 | 411 |
} |
Also available in: Unified diff
bugfix