FULLPIPE: Fix bug in picture search

This commit is contained in:
Eugene Sandulenko 2013-09-18 23:45:04 +04:00
parent 38a0c8556f
commit 77daa12f85

View File

@ -327,7 +327,7 @@ void Scene::setPictureObjectsFlag4() {
}
PictureObject *Scene::getPictureObjectById(int objId, int flags) {
for (uint i = 0; i < _picObjList.size(); i++) {
for (uint i = 1; i < _picObjList.size(); i++) {
if (((PictureObject *)_picObjList[i])->_id == objId && ((PictureObject *)_picObjList[i])->_okeyCode == flags)
return (PictureObject *)_picObjList[i];
}