Thyme
Thyme copied to clipboard
Cleanup RenderObjClass properly
Untested. ~~Not applicable for GAME_DLL I think, because touches vtable.~~
The idea is call Remove function before deletion, to make sure that the deleted object is being disconnected always. If it is not disconnected, then dangling pointer can cause game crash. Essentially this change makes code more robust.
Updated with implementation that does not touch vtable.