Orig game reads uninitialized memory in xray

This commit is contained in:
Snesrev
2023-03-06 18:55:05 +01:00
parent 039c663141
commit 4e83a497df
2 changed files with 7 additions and 0 deletions

View File

@@ -1985,6 +1985,9 @@ void Xray_SetupStage4_Func1(void) { // 0x91CCF1
}
void Xray_SetupStage4_Func2(void) { // 0x91CD42
// bug: passing 0xffff to this function is invalid and will read invalid memory.
if (R34 == 0)
return;
unsigned int v2;
int16 v3;
unsigned int v7;