so we know that Player values will crash the game, but strangly enough,
doesnt seem to crash. It should read memory around 0x0B294118, which for some reason is valid. I didnt manage to typecast the fog state to anything that is readable tho.
Your thoughts?
Also, players for me at least, seem to be valid in range <230; 953>
Just a little note: FogState occupies 12 bytes
Player(0x100)
didnt crash for me. Also this script:
JASS:
private static method playerToUnit takes player p returns unit
call SaveFogStateHandle(h, 0, 0, ConvertFogState(0x6DAB5))
return LoadUnitHandle(h, 0, 0)
endmethod
static method onInit takes nothing returns nothing
call BJDebugMsg(R2S(GetWidgetLife(playerToUnit(Player(0)))))
endmethod
doesnt seem to crash. It should read memory around 0x0B294118, which for some reason is valid. I didnt manage to typecast the fog state to anything that is readable tho.
Your thoughts?
Also, players for me at least, seem to be valid in range <230; 953>
Just a little note: FogState occupies 12 bytes