fix for using an un-initialized pointer & quiet compiler wanring on raytrace test.

This commit is contained in:
2010-03-06 22:30:09 +00:00
parent 26fae8985b
commit c50bfd486e
2 changed files with 2 additions and 1 deletions

View File

@@ -450,6 +450,7 @@ int RE_rayobject_intersect(RayObject *r, Isect *i)
return r->api->raycast( r, i );
}
else assert(0);
return 0; /* wont reach this, quiet compilers */
}
void RE_rayobject_add(RayObject *r, RayObject *o)

View File

@@ -2627,7 +2627,7 @@ static void init_render_dm(DerivedMesh *dm, Render *re, ObjectRen *obr,
int a, a1, end, totvert, vertofs;
VertRen *ver;
VlakRen *vlr;
Curve *cu;
Curve *cu= NULL;
MVert *mvert = NULL;
MFace *mface;
Material *ma;