]> git.mxchange.org Git - simgear.git/commit
Protect against division by zero in QuadTreeBuilder
authorTim Moore <timoore@redhat.com>
Sun, 18 Jan 2009 23:04:59 +0000 (00:04 +0100)
committerTim Moore <timoore@redhat.com>
Sun, 18 Jan 2009 23:04:59 +0000 (00:04 +0100)
commit1a8fd626803635c7edf0647fbdb4be30d32572aa
treee5fb77ce9c81b08171711aa3a91e3db63c90e81f
parentdb8f7f21e8f9f2f5ab5efeb4c59cf6e66b071f66
Protect against division by zero in QuadTreeBuilder

This could only happen when there's one leaf in the tree, or all the objects
happen to have the same position. Noticed by Csaba Halaz
simgear/scene/util/QuadTreeBuilder.hxx