mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-11 03:39:59 +00:00
Fix oob access in Matrix_SetTranslateScaleMtx2 (#1152)
This commit is contained in:
parent
145b14dbc4
commit
2306e094b2
1 changed files with 2 additions and 2 deletions
|
@ -1118,7 +1118,7 @@ void Matrix_SetTranslateScaleMtx2(Mtx* mtx, f32 scaleX, f32 scaleY, f32 scaleZ,
|
|||
(*m)[2][1] = 0;
|
||||
(*m)[0][3] = 0;
|
||||
(*m)[2][3] = 0;
|
||||
(*m)[0][4] = 0;
|
||||
(*m)[1][0] = 0;
|
||||
|
||||
fixedPoint = (s32)(scaleX * 0x10000);
|
||||
(*m)[0][0] = fixedPoint;
|
||||
|
@ -1134,7 +1134,7 @@ void Matrix_SetTranslateScaleMtx2(Mtx* mtx, f32 scaleX, f32 scaleY, f32 scaleZ,
|
|||
intPart[11] = 0;
|
||||
(*m)[3][1] = fixedPoint << 16;
|
||||
|
||||
(*m)[2][4] = 0;
|
||||
(*m)[3][0] = 0;
|
||||
|
||||
fixedPoint = (s32)(translateX * 0x10000);
|
||||
intPart[12] = (fixedPoint >> 16) & 0xFFFF;
|
||||
|
|
Loading…
Reference in a new issue