Yonaba / Jumper

Fast, lightweight and easy-to-use pathfinding library for grid-based games
http://yonaba.github.io/Jumper
MIT License
607 stars 122 forks source link

isOutOfRange not defined - accesses an undeclared global #54

Open ghost opened 7 years ago

ghost commented 7 years ago

That's in jumper/core/assert.lua

Fix:

--- a/jumper/core/assert.lua
+++ b/jumper/core/assert.lua
@@ -96,7 +96,6 @@ if (...) then
                isBool = isBoolean,
                isMap = isMap,
                isStrMap = isStringMap,
-               isOutOfRange = isOutOfRange,
                isNil = isNil,
                type = type,
                matchType = matchType

Edit: Similarly for jumper/core/utils.lua:

--- a/jumper/core/utils.lua
+++ b/jumper/core/utils.lua
@@ -146,7 +146,6 @@ if (...) then
                arrayToNodes = arrayToNodes,
                strToMap = stringMapToArray,
                around = around,
-               drAround = drAround,
                traceBackPath = traceBackPath
        }