Skip to content

Fix for #749: Added a nil sanity check to _G.hspairs before the call to pairs - #750

Open
DeviousNess95 wants to merge 1 commit into
Grokitach:dev2from
DeviousNess95:dev2
Open

Fix for #749: Added a nil sanity check to _G.hspairs before the call to pairs#750
DeviousNess95 wants to merge 1 commit into
Grokitach:dev2from
DeviousNess95:dev2

Conversation

@DeviousNess95

Copy link
Copy Markdown

I made this change to fix #749, but wanted to submit it. It seems that _g_patches.script is sort of a core script, and many others rely upon it. If a similar condition would exist elsewhere, it may help with that, as well. I also note that it may be an incomplete fix, but I can't really tell on my own. Lua is not my strong suit. However, it's a one-liner, and so far works beautifully. I disassembled 60 PBs very quickly with no issues and no drop in performance. I can't foresee any negative effects of adding this quick sanity check to make sure we're not gonna crash.

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

Successfully merging this pull request may close these issues.

1 participant