Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions jumper/core/lookuptable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ end

function lookupTable:hasPath(nodeA, nodeB)
local found
found = self._pathDB[nodeA] and self._path[nodeA][nodeB]
found = self._pathDB[nodeA] and self._pathDB[nodeA][nodeB]
if found then return true, true end
found = self._pathDB[nodeB] and self._path[nodeB][nodeA]
found = self._pathDB[nodeB] and self._pathDB[nodeB][nodeA]
if found then return true, false end
return false
end

return lookupTable
return lookupTable