https://bugs.winehq.org/show_bug.cgi?id=55903
--- Comment #9 from Fabian Maurer dark.shadow4@web.de --- Thanks for the insights, although I currently don't see anything wrong with that.
Since "this" is the c++ this pointer, I don't think that is NULL or invalid. TheObjectLODs should be an nonchanging ObjectLOD pointer, so this seems valid as well.
Not sure if that is an option, but you could log the addresses of both "this" and "TheObjectLODs" before trying that subtraction, that should show if there is any funny business going on. I mean, one of them has to be off, but I currently can't see how.
Unless maybe there's an object that is accidentally copied, then "this" is suddenly completely out of bounds. I assume that "TheObjectLODs" is not getting relocated either? Sorry, it's kinda hard for me without seeing the entire thing.