[DiscordArchive] Hello comunity the azeoth core, Can someone help me tell me how to fix these errors?
[DiscordArchive] Hello comunity the azeoth core, Can someone help me tell me how to fix these errors?
Archived author: • Posted: 2023-04-18T00:45:59.999000+00:00
Original source
Hello comunity the azeoth core, Can someone help me tell me how to fix these errors?
Archived author: • Posted: 2023-04-18T00:46:54.529000+00:00
Original source
![[Image: image-1.png?ex=690beffe&is=690a9e7e&hm=b...fa466f463&]](https://cdn.discordapp.com/attachments/284406375495368704/1097684649192456232/image-1.png?ex=690beffe&is=690a9e7e&hm=b737d8f2d5062a3c80a8711150f8bd579e0c3695290b9064151da7efa466f463&)
![[Image: image-3.png?ex=690beffe&is=690a9e7e&hm=a...9811d6513&]](https://cdn.discordapp.com/attachments/284406375495368704/1097684649439940688/image-3.png?ex=690beffe&is=690a9e7e&hm=af7649e8d5cb7e8a430057ef5bb0ad7ef557283abe1eea7c5e5524f9811d6513&)
![[Image: image-2.png?ex=690beffe&is=690a9e7e&hm=d...411921c1d&]](https://cdn.discordapp.com/attachments/284406375495368704/1097684649683197953/image-2.png?ex=690beffe&is=690a9e7e&hm=d9ee9fd8734520f6a4072c5fa1e95f662dcec87ac82d49dc673b1ad411921c1d&)
Archived author: Anchy • Posted: 2023-04-18T02:55:12.175000+00:00
Original source
not sure if its really relevant but during my testing of my hardmode module sometimes when I would deactivate a mode on my gossip npc it would be off by 1 index and deactivate the wrong mode
Archived author: Anchy • Posted: 2023-04-18T02:56:16.310000+00:00
Original source
I can replicate it quite easily, as it happens while I am running
Archived author: Anchy • Posted: 2023-04-18T02:56:33.042000+00:00
Original source
so it could be an off-by-one error
Archived author: Anchy • Posted: 2023-04-18T03:03:37.914000+00:00
Original source
not really sure if it's in relation to my gossip script though
Archived author: Anchy • Posted: 2023-04-18T03:13:39.381000+00:00
Original source
actually it's not an off-by-one, and it's due to this line of code here:
```cpp
uint32 GossipMenu::GetMenuItemAction(uint32 menuItemId) const
{
GossipMenuItemContainer::const_iterator itr = _menuItems.find(menuItemId);
if (itr == _menuItems.end())
return 0; // The culprit
return itr->second.OptionType;
}```
Archived author: Anchy • Posted: 2023-04-18T03:13:44.504000+00:00
Original source
I'll update the issue I guess