1
0
Fork 0
forked from len0rd/rockbox

Fix crash when selecting statusbar: custom in the menus without having a valid sbs loaded.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23635 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Martitz 2009-11-15 17:44:13 +00:00
parent a1bc3401f1
commit f80a6ddeae

View file

@ -135,7 +135,7 @@ void sb_skin_set_state(int state, enum screen_type screen)
{
sb_skin[screen].sync_data->do_full_update = true;
int skinbars = sb_skin[screen].sync_data->statusbars;
if (state)
if (state && loaded_ok[screen])
{
skinbars |= VP_SB_ONSCREEN(screen);
}