[DiscordArchive] What am I doing wrong here? Segfaults and crashes the server on that `if` statement. Is sourceGameOb
[DiscordArchive] What am I doing wrong here? Segfaults and crashes the server on that `if` statement. Is sourceGameOb
![[Image: image.png?ex=690beccb&is=690a9b4b&hm=8b2...7b4397a0b&]](https://cdn.discordapp.com/attachments/284323424032129024/1113263891351339079/image.png?ex=690beccb&is=690a9b4b&hm=8b215ea51b836a6145f9c66122f90fbd843fd6715b4fcf0c9bb5d287b4397a0b&)
Archived author: KJack • Posted: 2023-05-31T00:33:15.197000+00:00
Original source
What am I doing wrong here? Segfaults and crashes the server on that `if` statement. Is sourceGameObject not what I think it is, where the loot money is coming from?
![[Image: image.png?ex=690beccb&is=690a9b4b&hm=8b2...7b4397a0b&]](https://cdn.discordapp.com/attachments/284323424032129024/1113263891351339079/image.png?ex=690beccb&is=690a9b4b&hm=8b215ea51b836a6145f9c66122f90fbd843fd6715b4fcf0c9bb5d287b4397a0b&)
Archived author: KJack • Posted: 2023-05-31T00:42:31.993000+00:00
Original source
this also fails equally - segfault and crash
![[Image: image.png?ex=690beef9&is=690a9d79&hm=618...096cd4785&]](https://cdn.discordapp.com/attachments/284323424032129024/1113266231185772584/image.png?ex=690beef9&is=690a9d79&hm=618c3dbfa786674509ce684081bb808109ecf69201c306903efd0d9096cd4785&)
Archived author: KJack • Posted: 2023-05-31T00:42:33.066000+00:00
Original source
![[Image: image.png?ex=690beef9&is=690a9d79&hm=618...096cd4785&]](https://cdn.discordapp.com/attachments/284323424032129024/1113266231185772584/image.png?ex=690beef9&is=690a9d79&hm=618c3dbfa786674509ce684081bb808109ecf69201c306903efd0d9096cd4785&)
Archived author: Kitzunu • Posted: 2023-05-31T00:49:02.681000+00:00
Original source
You sure sourceGameObject is a part of Loot
Archived author: Kitzunu • Posted: 2023-05-31T00:49:18.682000+00:00
Original source
Beacause I am not
![[Image: image.png?ex=690bf0c7&is=690a9f47&hm=3e3...53f90213f&]](https://cdn.discordapp.com/attachments/284323424032129024/1113268170166390804/image.png?ex=690bf0c7&is=690a9f47&hm=3e3a226a54ee2e62caa7410754739e4b82fc5e5ce9213280fb392b653f90213f&)
Archived author: KJack • Posted: 2023-05-31T00:50:15.354000+00:00
Original source
well, it looks like it is to me, but does that mean it always returns nullptr?
![[Image: image.png?ex=690bf0c7&is=690a9f47&hm=3e3...53f90213f&]](https://cdn.discordapp.com/attachments/284323424032129024/1113268170166390804/image.png?ex=690bf0c7&is=690a9f47&hm=3e3a226a54ee2e62caa7410754739e4b82fc5e5ce9213280fb392b653f90213f&)
Archived author: KJack • Posted: 2023-05-31T00:51:17.008000+00:00
Original source
that's the only mention of sourceGameObject in LootMgr.h and there's no mention of it in LootMgr.cpp, so I'm not sure I understand what its supposed to be doing then.
Archived author: KJack • Posted: 2023-05-31T00:51:25.624000+00:00
Original source
is it for inheritence reasons?
Archived author: Kitzunu • Posted: 2023-05-31T00:53:45.557000+00:00
Original source
No idea. Check GameObject.cpp it is referenced there
Archived author: KJack • Posted: 2023-05-31T00:55:02.457000+00:00
Original source
sorry, my C++ is very rusty/non-existant. trying to figure out what I can before I ask.