View Single Post
07-31-13, 02:19 AM   #2
Malsomnus
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Apr 2013
Posts: 203
First thing that pops up for me is the line:
Lua Code:
  1. local f, g, a = 1

Is it possible that what you meant to write is
Lua Code:
  1. local f, g, a = 1, 1, 1
?

[Edit]
It really looks like lines 18, 20, 22 and 24 should complain about indexing/ arithmetic with nil values. Do you get these errors?
Anyway instead of managing indexes you can just use:
Lua Code:
  1. table.insert (mounts.flying, {creatureID, creatureName, creatureSpellID, icon, issummoned, mountType})
__________________
SanityCheck - If you've ever said the words "Sorry, I forgot" then you need this add-on.

Remember, every time you post a comment on an add-on, a kitten gets its wings!

Last edited by Malsomnus : 07-31-13 at 02:25 AM.
  Reply With Quote