1.3b88 deleting macro messes up indices

Confirmed bugs should get a single post here. Check the READ ME FIRST sticky thread for the format.

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice, MapTool BugReport Manager

Forum rules
Posts that do not conform to the READ ME FIRST sticky thread are subject to deletion.
Post Reply
User avatar
Posts: 4
Joined: Tue May 29, 2012 2:41 am

1.3b88 deleting macro messes up indices

Post by Flibbles »


I've been having trouble with "getMacroGroup" and "getMacros" disagreeing about what macro goes to what index. I've narrowed this down as best I can and it seems that deleting a macro from a token does not update the index of all macros that come after it. This can be easily reproduced by:

1. Creating a token
2. Adding macro "A"
3. Adding macro "B"
4. Deleting macro "A"
5. Calling [r: getMacroIndexes("B")]

The result is "2", and "getMacroGroup" also returns "2". But "getMacros" returns "B", making it difficult to match the indexes of a group to their corresponding names.

Let me know if there's anything else I need to elaborate on, or if this is expected behavior.

Post Reply

Return to “Bug Reports”