Originally Posted by Sharlikran
Which line is 2285? If it is "if cptable[setId][slotIndex] ~= nil then" then the table does not have the values at the time it is looked at. So while you are saying "~= nil" the table, setId, and slotIndex need to be defined.
if cptable[setId] == nil then cptable[setId] = {} end
if cptable[setId][slotIndex] == nil then cptable[setId][slotIndex] = {} end
The table will be empty and not nil.
However, I don't think you can have cptable[setId][slotIndex] = nil, if I understand correctly because nil is not important so it would just be cptable[setId] = <<whatever>>
|
Champion.lua is not my code, it's from the Api. And the table cptable cannot be empty at this point.
https://github.com/esoui/esoui/blob/...pion.lua#L2285
It's a function for CP animations.