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

Crash due to lua error in control.lua:83: attempt to index field 'personalsets' (is a nil value) #15

Open
ghost opened this issue Feb 8, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 8, 2017

Friends of mine sometimes got a crash due to a lua error in control.lua:83: attempt to index field 'personalsets' (is a nil value).

The error occurs inside the function script.on_event("autofill-toggle-limits", function(event) in the line:

local afplayer = global.personalsets[player.name]

They hacked around this by adding a check right before that line:

if global.personalsets == nil then
  initMod(true)
end

.. but I'm sure there is a better way to fix it.

@ghost ghost changed the title Crash due to lua error in control.lua:118: attempt to index field 'personalsets' (is a nil value) Crash due to lua error in control.lua:83: attempt to index field 'personalsets' (is a nil value) Feb 8, 2017
@Nexela
Copy link
Owner

Nexela commented Feb 8, 2017

Thanks for the heads up. Your fix should have no ill-effects. I am currently working on Autofill 2.0 so I probably won't push an official fix for this unless I get more reports.

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

1 participant