Minor crash bugfix
authorSam Lantinga <slouken@lokigames.com>
Wed, 23 May 2001 00:06:08 +0000
changeset 34 27cb016592f9
parent 33 81a7158fa836
child 35 d3bc792e136d
Minor crash bugfix
src/video/SDL_video.c
--- a/src/video/SDL_video.c	Tue May 22 05:06:50 2001 +0000
+++ b/src/video/SDL_video.c	Wed May 23 00:06:08 2001 +0000
@@ -1134,6 +1134,9 @@
 	int gotall;
 	int palsize;
 
+	if ( ! current_video ) {
+		return 0;
+	}
 	if ( screen != SDL_PublicSurface ) {
 	        /* only screens have physical palettes */
 	        which &= ~SDL_PHYSPAL;