RCS file: /cvsroot/scummvm/scummvm/queen/cutaway.cpp,v
retrieving revision 1.120
diff -u -d -r1.120 cutaway.cpp
|
|
|
1067 | 1067 | int index = _personFace[i].index; |
1068 | 1068 | if (index > 0) { |
1069 | 1069 | _vm->logic()->objectData(_personFace[i].index)->image = _personFace[i].image; |
1070 | | |
1071 | | _vm->graphics()->bob(_vm->logic()->findBob(index))->xflip = |
1072 | | (_personFace[i].image != -4); |
| 1070 | int bobIndex = _vm->logic()->findBob(index); |
| 1071 | if (bobIndex >= Graphics::MAX_BOBS_NUMBER) |
| 1072 | break; |
| 1073 | |
| 1074 | BobSlot *b = _vm->graphics()->bob(bobIndex); |
| 1075 | b->xflip = (_personFace[i].image != -4); |
1073 | 1076 | } |
1074 | 1077 | } |
1075 | 1078 | |