{$CLEO}

//"Pizzaboy Fix"

wait 1000

0004: $PIZZABOY_PTR_ID = 0x00A0EDC4
$PIZZABOY_PTR_Z = $PIZZABOY_PTR_ID + 12
0004: $PIZZABOY_Z_BAD = 0x4136A3D7 //11.4
0004: $PIZZABOY_Z_FIX = 0x414BD70A //12.74

//Avoid breaking things if data doesn't match
0A8D: $PIZZABOY_ID = read_memory $PIZZABOY_PTR_ID size 4 virtual_protect 0
0A8D: $PIZZABOY_Z = read_memory $PIZZABOY_PTR_Z size 4 virtual_protect 0
if and
0038: $PIZZABOY_ID == 178
003A: $PIZZABOY_Z == $PIZZABOY_Z_BAD
then
    0A8C: write_memory $PIZZABOY_PTR_Z size 4 value $PIZZABOY_Z_FIX virtual_protect 0
end

:main
wait 5000
jump @main

//This crashed the game after loading a saved game with this CLEO script
//end_thread