View Single Post
12/25/21, 04:58 PM   #3
tim99
 
tim99's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2017
Posts: 22
Originally Posted by Calamath View Post
I think it is not a bug in the API, just your misunderstanding.
The result of IsValidQuestIndex(10) shows that the index 10 is an invalid index.
So the behavior of GetJournalQuestName for an invalid index is correct.

The quest you are missing should be in one of the indexes 19-25.

- Calamath



ooooh ok... so there can be "spaces" of wrong indexes in the rows of 1 to GetNumJournalQuests()? I actually never would have thought of that So if i wanna check if i have a special quest in the journal the GetNumJournalQuests() ist basically useless and i should check for 1 to 25 and skip blank ones?


Good hint, thx. Would explain the addon breaking if i just look at half of the quests (1..GetNum). I will check it the next time. I would have bet all my ingame money that this is a bug ( not any more ofc )




edit. didnt find a "delete post" function. Shall i empty out all text or leave it?

Last edited by tim99 : 12/25/21 at 05:01 PM.
  Reply With Quote