BBVS: Don't draw "blank" objects (bug #13235)
This fixes a crash when the Hock-A-Loogie minigame ends, when buildDrawList3() would previously try to draw every object, even ones where 'anim' was null which caused it to crash. I don't know if this fix is exactly what the original did, but it seems to match the original behavior when I've tried it in Wine. I've tried both the standalone minigame, and the minigame as it appears in the full game.
This commit is contained in:
parent
6d8672bec9
commit
2fd9c511d9
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ void MinigameBbLoogie::buildDrawList3(DrawList &drawList) {
|
|||
Obj *obj = &_objects[i];
|
||||
if (obj->kind == 2)
|
||||
drawList.add(obj->anim->frameIndices[obj->frameIndex], obj->x, obj->y, 400);
|
||||
else
|
||||
else if (obj->kind != 0)
|
||||
drawList.add(obj->anim->frameIndices[obj->frameIndex], obj->x, obj->y, obj->y + 16);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue