Prior to that line add the following :
print("DEBUG: Spell ID:",SID);
Then see what it shows in your chat window. Maybe it is getting to that line prior to the OnLoad call. You can test this by setting SID at the top of your lua file it is used in and set it to a value there.
|