It appears that throughout the game, signed values that are undefined are represented with SHRT_MIN (0x8000) and LONG_MIN (0x80000000) depending on whether its a 2 byte or 4 byte integer. Otherwise -1 (0xFFFFFFFF) is used, and sometimes even for pointers which really should be NULL.