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

Infinitely loops on certain Lua code #98

Open
nwinter opened this issue Aug 11, 2014 · 1 comment
Open

Infinitely loops on certain Lua code #98

nwinter opened this issue Aug 11, 2014 · 1 comment
Assignees

Comments

@nwinter
Copy link
Contributor

nwinter commented Aug 11, 2014

Here's a pared-down example that sends Aether into an infinite loop:

function each(e,i,array)
    local goal=self:distance(e)-e.bountyGold
    if not dist or goal<dist then
        item=e
        dist=goal
    end
end
local a={}
local ind=1
a[ind]:forEach(each)  -- this is the line that does it, the rest is setup

@basicer I can check this out, but do you know if this a[ind]:forEach(each) syntax might be triggering any special areas that I should look first?

@nwinter
Copy link
Contributor Author

nwinter commented May 22, 2016

Now this code just gives me a simple error like I don't know what the function is:

screenshot 2016-05-22 09 18 01

Lua functions not working at all still?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants