Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] In CPP ?. How you prevent that ?

[DiscordArchive] In CPP ?. How you prevent that ?

[DiscordArchive] In CPP ?. How you prevent that ?

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
02-16-2024, 11:55 AM
#1
Archived author: Berti • Posted: 2024-02-16T11:55:10.191000+00:00
Original source

In CPP ?. How you prevent that ?
rektbyfaith
02-16-2024, 11:55 AM #1

Archived author: Berti • Posted: 2024-02-16T11:55:10.191000+00:00
Original source

In CPP ?. How you prevent that ?

rektbyfaith
Administrator
0
02-16-2024, 11:55 AM
#2
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.
rektbyfaith
02-16-2024, 11:55 AM #2

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.

rektbyfaith
Administrator
0
02-16-2024, 11:56 AM
#3
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
rektbyfaith
02-16-2024, 11:56 AM #3

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

rektbyfaith
Administrator
0
02-16-2024, 11:56 AM
#4
Archived author: Berti • Posted: 2024-02-16T11:56:38.102000+00:00
Original source

For get player
rektbyfaith
02-16-2024, 11:56 AM #4

Archived author: Berti • Posted: 2024-02-16T11:56:38.102000+00:00
Original source

For get player

rektbyfaith
Administrator
0
02-16-2024, 12:34 PM
#5
Archived author: Searcas7 • Posted: 2024-02-16T12:34:23.394000+00:00
Original source

you just iterate right after removing.
map.erase(iter++);
rektbyfaith
02-16-2024, 12:34 PM #5

Archived author: Searcas7 • Posted: 2024-02-16T12:34:23.394000+00:00
Original source

you just iterate right after removing.
map.erase(iter++);

rektbyfaith
Administrator
0
02-16-2024, 12:35 PM
#6
Archived author: Berti • Posted: 2024-02-16T12:35:34.641000+00:00
Original source

Also that
rektbyfaith
02-16-2024, 12:35 PM #6

Archived author: Berti • Posted: 2024-02-16T12:35:34.641000+00:00
Original source

Also that

rektbyfaith
Administrator
0
02-16-2024, 12:37 PM
#7
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
rektbyfaith
02-16-2024, 12:37 PM #7

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

rektbyfaith
Administrator
0
02-16-2024, 12:37 PM
#8
Archived author: Searcas7 • Posted: 2024-02-16T12:37:52.375000+00:00
Original source

ofc
rektbyfaith
02-16-2024, 12:37 PM #8

Archived author: Searcas7 • Posted: 2024-02-16T12:37:52.375000+00:00
Original source

ofc

rektbyfaith
Administrator
0
02-16-2024, 12:37 PM
#9
Archived author: Searcas7 • Posted: 2024-02-16T12:37:54.816000+00:00
Original source

Don't have to mention this
rektbyfaith
02-16-2024, 12:37 PM #9

Archived author: Searcas7 • Posted: 2024-02-16T12:37:54.816000+00:00
Original source

Don't have to mention this

rektbyfaith
Administrator
0
02-16-2024, 12:37 PM
#10
Archived author: Searcas7 • Posted: 2024-02-16T12:37:58.567000+00:00
Original source

I guess
rektbyfaith
02-16-2024, 12:37 PM #10

Archived author: Searcas7 • Posted: 2024-02-16T12:37:58.567000+00:00
Original source

I guess

Pages (2): 1 2 Next
Recently Browsing
 
Recently Browsing