https://bugs.winehq.org/show_bug.cgi?id=55903 --- Comment #1 from Stan aka Xeno <xeno(a)x-s.com.pl> --- I've talked with one of the app devs to get some hints what app is doing in this place. To quote what he said: [...] Essentially, its a pointer trick. Lodidx comes from the object memory address - the first object in the array. its pointer arithmetics, something which is not recommended, but works. const int lodIdx = static_cast<int>(this - TheObjectLODs); Theobjectlods is an array of objects. So we take our address and subtract from the array. This should give us our index. For example, in a very simplified way, if our address is 10 and the array starts at 8, we are index 2 (because 0 is not valid). Maybe wine changed pointer arithmetic behavior for security reasons [...] -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.