src/video/SDL_shape.c
changeset 4832 0c82f20327ec
parent 4830 3dfe779900f5
child 4834 fd5bb97ec05d
--- a/src/video/SDL_shape.c	Tue Aug 03 23:41:57 2010 -0400
+++ b/src/video/SDL_shape.c	Thu Aug 05 00:53:38 2010 -0400
@@ -22,6 +22,7 @@
 #include "SDL_config.h"
 
 #include "SDL.h"
+#include "SDL_assert.h"
 #include "SDL_video.h"
 #include "SDL_sysvideo.h"
 #include "SDL_pixels.h"
@@ -197,6 +198,7 @@
 }
 
 void SDL_TraverseShapeTree(SDL_ShapeTree *tree,SDL_TraversalFunction function,void* closure) {
+	SDL_assert(tree != NULL);
 	if(tree->kind == QuadShape) {
 		SDL_TraverseShapeTree((SDL_ShapeTree *)tree->data.children.upleft,function,closure);
 		SDL_TraverseShapeTree((SDL_ShapeTree *)tree->data.children.upright,function,closure);