gta-reversed/gta-reversed-modern

Crash in `CEntity::CleanUpOldReference`

Opened this issue · 2 comments

Description

Crash happens in the above function

Steps to Reproduce

Not sure tbh, I was just AFKing, closed the game, and that it.

Expected Behavior

...

Current Behavior

...

Screenshots/Videos

Callstack
image

from CInterestingEvents::~CInterestingEvents (0x85689c)

I think this actually is an OG bug.
Since this thing is static it's destroyed atexit, at which point the pools are unallocated already, which, well, is use after free => bad.
No real solution for now imho.
Good job btw thank you!