WopsS / RED4ext.SDK

A library to create mods for REDengine 4 (Cyberpunk 2077), independently of RED4ext.
MIT License
100 stars 33 forks source link

Fixed DynArray #128

Closed psiberx closed 4 months ago

psiberx commented 4 months ago

Fixes my previous fix #127, sorry :)

WopsS commented 4 months ago

For my information, what was the issue there, invalid memory?

psiberx commented 4 months ago

Free(entries) also erases allocator placed at the end of the buffer. So it's necessary to save it before calling Free().