Mercurial > wow > reagentmaker
comparison SecureMenu.lua @ 39:71e8b39f056e
Remove infinite loop on the external frame, which prevented crafting items
| author | contrebasse | 
|---|---|
| date | Fri, 29 Apr 2011 23:43:59 +0200 | 
| parents | 5394c492850e | 
| children | 5a6091dddf69 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 38:aa2f6965c0f6 | 39:71e8b39f056e | 
|---|---|
| 326 -- Loop over the available recipes | 326 -- Loop over the available recipes | 
| 327 MenuFrame.state = true | 327 MenuFrame.state = true | 
| 328 for _,reagent in ipairs(A.data[itemID]) do | 328 for _,reagent in ipairs(A.data[itemID]) do | 
| 329 if A.data[itemID].spell then | 329 if A.data[itemID].spell then | 
| 330 -- Special spell | 330 -- Special spell | 
| 331 MenuFrame.state = menuAddItem(A.data[itemID].spell,itemID,reagent,A.data[itemID].spellLink) and state | 331 MenuFrame.state = menuAddItem(A.data[itemID].spell,itemID,reagent,A.data[itemID].spellLink) and MenuFrame.state | 
| 332 else | 332 else | 
| 333 -- Standard tradeskill spell UNTESTED | 333 -- Standard tradeskill spell UNTESTED | 
| 334 MenuFrame.state = menuAddItem(A.craft,itemID,reagent) and state | 334 MenuFrame.state = menuAddItem(A.craft,itemID,reagent) and MenuFrame.state | 
| 335 end -- if | 335 end -- if | 
| 336 end -- for | 336 end -- for | 
| 337 | 337 | 
| 338 MenuFrame:SetHeight(89 + numActiveEntries*(MENU_ENTRY_HEIGHT+2)) | 338 MenuFrame:SetHeight(89 + numActiveEntries*(MENU_ENTRY_HEIGHT+2)) | 
| 339 | 339 | 
