From 49609dd78bb586c8ab3349105ceedeb2eb0d91ea Mon Sep 17 00:00:00 2001 From: Roman971 <32455037+Roman971@users.noreply.github.com> Date: Sun, 23 Aug 2020 23:50:30 +0200 Subject: Match/Improve a bunch of non matchings (#342) --- src/code/z_view.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/code/z_view.c') diff --git a/src/code/z_view.c b/src/code/z_view.c index b0566e7a4..9ab4db07e 100644 --- a/src/code/z_view.c +++ b/src/code/z_view.c @@ -537,10 +537,10 @@ s32 func_800AB9EC(View* view, s32 arg1, Gfx** gfxp) { Mtx* projection; Mtx* viewing; - arg1 = (arg1 & view->flags) | (arg1 >> 4); + arg1 = (view->flags & arg1) | (arg1 >> 4); if (arg1 & 2) { - vp = Graph_Alloc(view->gfxCtx, sizeof(Vp)); + vp = Graph_Alloc(gfxCtx, sizeof(Vp)); LogUtils_CheckNullPointer("vp", vp, "../z_view.c", 910); View_ViewportToVp(vp, &view->viewport); -- cgit v1.2.3