Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error for non-hunter classes #1

Closed
Road-block opened this issue Feb 20, 2017 · 1 comment
Closed

Error for non-hunter classes #1

Road-block opened this issue Feb 20, 2017 · 1 comment

Comments

@Road-block
Copy link

Road-block commented Feb 20, 2017

I forgot to disable the addon on a non-hunter class so this error happened.
YaHT\defaults.lua:1: attempt to index global 'YaHT' (a nil value) YaHT\defaults.lua:1: in main chunk

Reason is that the class check in YaHT.lua:2 returns before the YaHT object is initialized, so defaults.lua errors when trying to reference YaHT.L.

A number of ways to fix it:

  • moving the class check after object init, to line:17 for example.
  • a similar check of if not YaHT then return end in the defaults file etc.
@Aviana
Copy link
Owner

Aviana commented Feb 24, 2017

Fixed.

@Aviana Aviana closed this as completed Feb 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants