spiralofhope / SuperDuperMacro

[unmaintained] A World of Warcraft AddOn which enables the creation of incredibly long macros.
http://blog.spiralofhope.com/?p=18050
Other
13 stars 11 forks source link

Fix error on attempting to claim a 19th character-specific macro #23

Open spiralofhope opened 5 years ago

spiralofhope commented 5 years ago

TL;DR the SDM window understand there are 18/18, so "claim" should just be greyed out..

This was discovered during exploration for #21


TESTING

in the /macro list..

Continue creating macros (even with the same name) until 17 are created, the entire macros list is full.

Create one additional macro in the /macro list, so that it's full.

Click to expand ``` 1x [string "local macroIndex = sdm_GetMacroIndex(471)..."]:6: CreateMacro() failed, already have 120 macros [C]: in function `CreateMacro' [string "local macroIndex = sdm_GetMacroIndex(471)..."]:6: in main chunk [C]: in function `RunScript' ...faceSuperDuperMacro\SuperDuperMacro_Core.lua:406: in function `sdm_DoOrQueue' ...faceSuperDuperMacro\SuperDuperMacro_Core.lua:167: in function `sdm_MakeBlizzardMacro' ...faceSuperDuperMacro\SuperDuperMacro_Core.lua:277: in function `sdm_SetUpMacro' SuperDuperMacro\SuperDuperMacro_Interface.lua:93: in function Locals: (*temporary) = "OVERWRITE_TEST" (*temporary) = "INV_MISC_QUESTIONMARK" (*temporary) = "#sdm%& # Enter macro text here." (*temporary) = true (*temporary) = 1 ```