REDIVIVUS

Proposals / #1389

gbInvImageLoadToggle (007bcc06) is a bool

checked · by Nugwa628 · submitted 2026-11-07

007bcc06 has two accesses in Game.exe, both byte-wide, in Unreferenced_00486ad0: 00486ad0 CMP byte ptr [0x007bcc06],0x0 / 00486ad7 SETZ AL / 00486ada MOV byte ptr [0x007bcc06],AL / 00486adf RET. It only ever holds the 0/1 result of SETZ (a toggle), and the function returns AL with no further normalisation. Typed as a plain byte the tree re-tests it (TEST AL,AL / SETNZ AL) before returning; as bool the code is the original's. VC8 oracle on main 92f67c4: Unreferenced_00486ad0 OUR+2 -> MATCH, +1 MATCH, 0 lost.

Changes 1, applied together

  1. Retype global win 0x007bcc06

    typeundefined1 (1 bytes)→bool