From c78e44cdc563853c250da78ee78ba622c39126b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Luc=20Peuri=C3=A8re?= Date: Wed, 9 Mar 2005 19:45:59 +0000 Subject: big warning hunt commit lot of casts, added prototypes, missing includes and some true errors --- source/gameengine/SceneGraph/SG_Tree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/gameengine/SceneGraph') diff --git a/source/gameengine/SceneGraph/SG_Tree.cpp b/source/gameengine/SceneGraph/SG_Tree.cpp index fcbf3d924d3..947d771f06c 100644 --- a/source/gameengine/SceneGraph/SG_Tree.cpp +++ b/source/gameengine/SceneGraph/SG_Tree.cpp @@ -366,9 +366,9 @@ SG_Tree* SG_TreeFactory::MakeTreeUp() while (num_objects > 2) { /* Find the pair of bboxes that produce the smallest combined bbox. */ - unsigned int minx, miny; + unsigned int minx = UINT_MAX, miny = UINT_MAX; MT_Scalar min_volume = FLT_MAX; - SG_Tree *min; + SG_Tree *min = NULL; //char temp[16]; for( y = 0; y < num_objects; y++) { -- cgit v1.2.3