Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] would you say having a script holding a smart pointer reference to a despawned creature or an offlin

[DiscordArchive] would you say having a script holding a smart pointer reference to a despawned creature or an offlin

[DiscordArchive] would you say having a script holding a smart pointer reference to a despawned creature or an offlin

rektbyfaith
Administrator
0
09-14-2024, 07:25 PM
#1
Archived author: jackpoz • Posted: 2024-09-14T19:25:14.261000+00:00
Original source

would you say having a script holding a smart pointer reference to a despawned creature or an offline player would do good ?
rektbyfaith
09-14-2024, 07:25 PM #1

Archived author: jackpoz • Posted: 2024-09-14T19:25:14.261000+00:00
Original source

would you say having a script holding a smart pointer reference to a despawned creature or an offline player would do good ?

rektbyfaith
Administrator
0
09-14-2024, 07:26 PM
#2
Archived author: jackpoz • Posted: 2024-09-14T19:26:11.005000+00:00
Original source

trying to cast spell to an offline player and being stuck in combat ? that will indeed take few hours of debugging
rektbyfaith
09-14-2024, 07:26 PM #2

Archived author: jackpoz • Posted: 2024-09-14T19:26:11.005000+00:00
Original source

trying to cast spell to an offline player and being stuck in combat ? that will indeed take few hours of debugging

rektbyfaith
Administrator
0
09-14-2024, 07:27 PM
#3
Archived author: jackpoz • Posted: 2024-09-14T19:27:14.285000+00:00
Original source

or just use ASan and get a clear report about what is wrong, if one knows how to use dynamic analysis tools, that is
rektbyfaith
09-14-2024, 07:27 PM #3

Archived author: jackpoz • Posted: 2024-09-14T19:27:14.285000+00:00
Original source

or just use ASan and get a clear report about what is wrong, if one knows how to use dynamic analysis tools, that is

rektbyfaith
Administrator
0
09-14-2024, 07:39 PM
#4
Archived author: Ike • Posted: 2024-09-14T19:39:07.401000+00:00
Original source

Don't store pointers to the objects. Store their GUID and look up the corresponding object in the world instead. Storing pointers and accessing them later will lead to super nasty and hard to track down bugs
rektbyfaith
09-14-2024, 07:39 PM #4

Archived author: Ike • Posted: 2024-09-14T19:39:07.401000+00:00
Original source

Don't store pointers to the objects. Store their GUID and look up the corresponding object in the world instead. Storing pointers and accessing them later will lead to super nasty and hard to track down bugs

rektbyfaith
Administrator
0
09-14-2024, 10:33 PM
#5
Archived author: Aleist3r • Posted: 2024-09-14T22:33:50.663000+00:00
Original source

just do like i do, forget to do null check and crash the server getting access violation
rektbyfaith
09-14-2024, 10:33 PM #5

Archived author: Aleist3r • Posted: 2024-09-14T22:33:50.663000+00:00
Original source

just do like i do, forget to do null check and crash the server getting access violation

rektbyfaith
Administrator
0
09-16-2024, 02:43 PM
#6
Archived author: herb • Posted: 2024-09-16T14:43:16.618000+00:00
Original source

hold the programmers hostage until someone spills the beans
rektbyfaith
09-16-2024, 02:43 PM #6

Archived author: herb • Posted: 2024-09-16T14:43:16.618000+00:00
Original source

hold the programmers hostage until someone spills the beans

rektbyfaith
Administrator
0
09-16-2024, 02:43 PM
#7
Archived author: herb • Posted: 2024-09-16T14:43:32.537000+00:00
Original source

https://tenor.com/view/ah-gif-23580102ht...f-23580102
rektbyfaith
09-16-2024, 02:43 PM #7

Archived author: herb • Posted: 2024-09-16T14:43:32.537000+00:00
Original source

https://tenor.com/view/ah-gif-23580102ht...f-23580102

rektbyfaith
Administrator
0
09-17-2024, 08:56 AM
#8
Archived author: Kaev • Posted: 2024-09-17T08:56:27.474000+00:00
Original source

TIL Would have guessed they would be set to nullptr when they get deleted. I barely do C++ but that will probably be good to know some day
rektbyfaith
09-17-2024, 08:56 AM #8

Archived author: Kaev • Posted: 2024-09-17T08:56:27.474000+00:00
Original source

TIL Would have guessed they would be set to nullptr when they get deleted. I barely do C++ but that will probably be good to know some day

rektbyfaith
Administrator
0
09-17-2024, 09:02 AM
#9
Archived author: Rafael • Posted: 2024-09-17T09:02:36.235000+00:00
Original source

Im trying to learn but TC standarts kill me ( in a good way)
rektbyfaith
09-17-2024, 09:02 AM #9

Archived author: Rafael • Posted: 2024-09-17T09:02:36.235000+00:00
Original source

Im trying to learn but TC standarts kill me ( in a good way)

rektbyfaith
Administrator
0
09-17-2024, 09:03 AM
#10
Archived author: Rafael • Posted: 2024-09-17T09:03:03.096000+00:00
Original source

Truth be told if your code aint good enought to be in their repository is not good enought for anything either way
rektbyfaith
09-17-2024, 09:03 AM #10

Archived author: Rafael • Posted: 2024-09-17T09:03:03.096000+00:00
Original source

Truth be told if your code aint good enought to be in their repository is not good enought for anything either way

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)