Skip to content

Commit 87a740d

Browse files
[TIC80] Don't read uninitalized local variables in lua_ttri
Fixes #4190
1 parent ec297bf commit 87a740d

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Assets/dll/tic80.wbx.zst

-158 Bytes
Binary file not shown.

waterbox/tic80/src/api/lua.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ static s32 lua_ttri(lua_State* lua)
539539
}
540540
}
541541

542-
float z[3];
542+
float z[3] = {0, 0, 0};
543543
bool depth = false;
544544

545545
if(top == 17)

0 commit comments

Comments
 (0)