Skip to content

Infinitely loops on certain Lua code #98

Open

Description

@nwinter

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?

Activity

  1. nwinter commented on May 22, 2016

    @nwinter
    ContributorAuthor

    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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions