changeset 34:27cb016592f9

Minor crash bugfix
author Sam Lantinga <slouken@lokigames.com>
date Wed, 23 May 2001 00:06:08 +0000
parents 81a7158fa836
children d3bc792e136d
files src/video/SDL_video.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;