View Single Post
06/22/14, 09:57 PM   #1
Randactyl
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 251
Attempt to index a nil value confusion

Hi all.

I'm trying to access an variable with a value from my saved variables, but ESO is complaining that the variable is nil.

This is the line in question:

Lua Code:
  1. if(Imperialization.savedVariables.ConvertOnEquip == true) then

This is executed by a function fired by EVENT_INVENTORY_SINGLE_SLOT_UPDATE.

If this line is not present, references just a few lines down in the same function to other items in my saved variables are picked up just fine. The error also only comes up at login, but not after a ui reload.

I've tried deleting the saved variables .lua file and starting from scratch, but still this issue persists.

Any help would be greatly appreciated!
  Reply With Quote