Skip to content

Commit

Permalink
[Fix] HC:remove(shape) does not remove from groups
Browse files Browse the repository at this point in the history
  • Loading branch information
vrld committed Feb 9, 2013
1 parent ec2cc20 commit df3e163
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.lua
Expand Up @@ -222,6 +222,9 @@ function HC:remove(shape, ...)
self._active_shapes[shape] = nil
self._passive_shapes[shape] = nil
self._ghost_shapes[shape] = nil
for name, group in pairs(shape._groups) do
group[shape] = nil
end
shape:_removeFromHash()

return self:remove(...)
Expand Down

0 comments on commit df3e163

Please sign in to comment.