[DiscordArchive] In CPP ?. How you prevent that ?
[DiscordArchive] In CPP ?. How you prevent that ?
Archived author: Berti • Posted: 2024-02-16T11:55:10.191000+00:00
Original source
In CPP ?. How you prevent that ?
Archived author: Berti • Posted: 2024-02-16T11:55:39.456000+00:00
Original source
If you remove the object from map, sure you can do it The problem is have dangling references to player in the map.
Archived author: Berti • Posted: 2024-02-16T11:56:34.155000+00:00
Original source
The Only solution that I've seen for that is use guids instead raw pointers
Archived author: Berti • Posted: 2024-02-16T11:56:38.102000+00:00
Original source
For get player
Archived author: Searcas7 • Posted: 2024-02-16T12:34:23.394000+00:00
Original source
you just iterate right after removing.
map.erase(iter++);
Archived author: Berti • Posted: 2024-02-16T12:35:34.641000+00:00
Original source
Also that
Archived author: Searcas7 • Posted: 2024-02-16T12:37:50.665000+00:00
Original source
You have to protect map from other threads accessing while doing this
Archived author: Searcas7 • Posted: 2024-02-16T12:37:52.375000+00:00
Original source
ofc
Archived author: Searcas7 • Posted: 2024-02-16T12:37:54.816000+00:00
Original source
Don't have to mention this
Archived author: Searcas7 • Posted: 2024-02-16T12:37:58.567000+00:00
Original source
I guess