diff src/video/SDL_video.c @ 34:27cb016592f9

Minor crash bugfix
author Sam Lantinga <slouken@lokigames.com>
date Wed, 23 May 2001 00:06:08 +0000
parents 57bf11a5efd7
children 45b1c4303f87
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;