From a0ae47f06c6232a91202bd06ea173b955735596b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 11 Sep 2012 02:18:27 +0000 Subject: add some missing NULL checks, a few parts of the code used a pointer then checked it for NULL after. also made it more clear that some areas assume the pointer isnt null (remove redundant NULL checks). --- source/gameengine/Rasterizer/RAS_MeshObject.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/gameengine') diff --git a/source/gameengine/Rasterizer/RAS_MeshObject.cpp b/source/gameengine/Rasterizer/RAS_MeshObject.cpp index 7da0be3a506..25afefbcc5a 100644 --- a/source/gameengine/Rasterizer/RAS_MeshObject.cpp +++ b/source/gameengine/Rasterizer/RAS_MeshObject.cpp @@ -536,18 +536,18 @@ void RAS_MeshObject::SortPolygons(RAS_MeshSlot& ms, const MT_Transform &transfor const MT_Vector3 pnorm(transform.getBasis()[2]); // unneeded: const MT_Scalar pval = transform.getOrigin()[2]; - vector slots(totpoly); + vector poly_slots(totpoly); /* get indices and z into temporary array */ for (j=0; j