Skip to content

Commit

Permalink
Fixed id adding
Browse files Browse the repository at this point in the history
CHANGED:
- Ids are properly added as key with node as the value instead of being
added using table.insert.
  • Loading branch information
Nathan Lam committed Feb 15, 2017
1 parent 75893f2 commit 3474e55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scene.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ end
-- Adds id to id tables of all ancestors
function node:add_id(id, anode)
self._ids = self._ids or {}
table.insert(self._ids, anode)
self._ids[id] = anode
if self.parent then self.parent:add_id(id, anode) end
end

Expand Down

0 comments on commit 3474e55

Please sign in to comment.