cleolibrary / CLEO4

CLEO 4 for GTA San Andreas
https://cleo.li
MIT License
235 stars 31 forks source link

0391 'patch' may cause a crash #16

Open DK22Pac opened 7 years ago

DK22Pac commented 7 years ago

https://github.com/cleolibrary/CLEO4/blob/07df6640da04799118f6273d55ffbb0f4239ccf9/CLEO4/CScriptEngine.cpp#L653 This may cause a crash if you load/unload TXD many times. https://sannybuilder.com/forums/viewtopic.php?id=4548

x87 commented 7 years ago

@Deji69 any idea why do we have this function hooked?

Deji69 commented 7 years ago

Probably something to do with script dependent drawing.

x87 commented 1 year ago

this patch can be undone in a script with

0A8C: write_memory 0x465A6F size 4 value 0x0D8B2774 virtual_protect 1 // CLEO

or

Memory.WriteU32(0x465A6F, 0x0D8B2774, true); // CLEO Redux

yet it's still not clear what it affects.