[DiscordArchive] totems ?
[DiscordArchive] totems ?
Archived author: Kiffy • Posted: 2023-09-11T09:05:02.886000+00:00
Original source
actually list
Archived author: Kiffy • Posted: 2023-09-11T09:05:18.928000+00:00
Original source
there
Archived author: stoneharry • Posted: 2023-09-11T09:05:34.616000+00:00
Original source
Is it safe to compare pointers in C++?
Archived author: Kiffy • Posted: 2023-09-11T09:05:55.023000+00:00
Original source
my server didnt crash so possibly
Archived author: stoneharry • Posted: 2023-09-11T09:06:39.084000+00:00
Original source
The behaviour might not be guaranteed, I'm not a C++ expert.
Archived author: Kiffy • Posted: 2023-09-11T09:07:09.997000+00:00
Original source
the script this is from stores a literal unit pointer so it might have problems with dangling pointers
Archived author: stoneharry • Posted: 2023-09-11T09:07:48.310000+00:00
Original source
Generally it's better to hold and compare GUIDs
Archived author: Kiffy • Posted: 2023-09-11T09:07:56.424000+00:00
Original source
yeah
Archived author: Deleted User • Posted: 2023-09-11T09:18:07.618000+00:00
Original source
If player and _caster are the same type, then it's fine afaik
Archived author: robinsch • Posted: 2023-09-11T09:19:24.356000+00:00
Original source
It just compares the memory address it points to. I don't think you can compare different types without explicitly casting them to void*, code should not compile.