[DiscordArchive] or is there a way to do it safely?
[DiscordArchive] or is there a way to do it safely?
Archived author: Kiffy • Posted: 2023-09-11T09:41:38.007000+00:00
Original source
or is there a way to do it safely?
Archived author: <o> • Posted: 2023-09-11T09:41:53.046000+00:00
Original source
because you don't own them, they are just references to entities that the core claims exists. they can be moved to another map or destroyed completely
Archived author: <o> • Posted: 2023-09-11T09:42:22.181000+00:00
Original source
storing the GUID is the safe way to store them across updates, and then ask the local map for them whenever you need them in a new update
Archived author: Kiffy • Posted: 2023-09-11T09:42:33.641000+00:00
Original source
ah okay makes sense
Archived author: <o> • Posted: 2023-09-11T09:44:06.652000+00:00
Original source
it's called the "dangling pointer" problem, and is probably the #1 or top 3 most common issue causing crashes
Archived author: Kiffy • Posted: 2023-09-11T09:44:18.488000+00:00
Original source
haha yeah
Archived author: Kiffy • Posted: 2023-09-11T09:44:40.729000+00:00
Original source
basically guid ftw