From 1fc0fdc8a5ad0a8286cb015c0e6f1577f53fb03c Mon Sep 17 00:00:00 2001 From: Roland Yonaba Date: Wed, 30 Jan 2013 12:33:47 +0000 Subject: [PATCH] Fixed path:iter() Updated 1.8.0 rockspec --- jumper/core/path.lua | 2 +- rockspecs/jumper-1.8.0.rockspec | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/jumper/core/path.lua b/jumper/core/path.lua index 3c13e6a..c056d16 100644 --- a/jumper/core/path.lua +++ b/jumper/core/path.lua @@ -44,7 +44,7 @@ if (...) then return function() if self[i] then i = i+1 - return self[i],i-1 + return self[i-1],i-1 end end end diff --git a/rockspecs/jumper-1.8.0.rockspec b/rockspecs/jumper-1.8.0.rockspec index 77c68cc..6fcdd72 100644 --- a/rockspecs/jumper-1.8.0.rockspec +++ b/rockspecs/jumper-1.8.0.rockspec @@ -24,7 +24,6 @@ build = { ["jumper.grid"] = "jumper/grid.lua", ["jumper.pathfinder"] = "jumper/pathfinder.lua", ["jumper.core.bheap"] = "jumper/core/bheap.lua", - ["jumper.core.grid"] = "jumper/core/grid.lua", ["jumper.core.heuristics"] = "jumper/core/heuristics.lua", ["jumper.core.node"] = "jumper/core/node.lua", ["jumper.core.path"] = "jumper/core/path.lua",