Minor crash bugfix

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%4035
This commit is contained in:
Sam Lantinga 2001-05-23 00:06:08 +00:00
parent 7e81fd927f
commit 0445aeab47

View file

@ -1134,6 +1134,9 @@ int SDL_SetPalette(SDL_Surface *screen, int which,
int gotall;
int palsize;
if ( ! current_video ) {
return 0;
}
if ( screen != SDL_PublicSurface ) {
/* only screens have physical palettes */
which &= ~SDL_PHYSPAL;