mirror of
https://github.com/grasmanek94/UniverseLAN.git
synced 2026-07-25 10:15:23 -04:00
Return address in logging is sometimes wrong. #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @grasmanek94 on GitHub (Jul 17, 2025).
Fixed in https://github.com/grasmanek94/UniverseLAN/commit/1aa328eaf3f93be9f0dad6711d6e57ce0ebe8f14
Issue analysis:
_ReturnAddress()would point here to the alternate constructors:As that's the return address (at least in unoptimized debug builds).
Fix is to get the return address at the highest level, in the upper constructors, and pass it to delegated constructors.