Index: display/simgraph16.cc =================================================================== --- display/simgraph16.cc (revisjon 8193) +++ display/simgraph16.cc (arbeidskopi) @@ -731,7 +731,8 @@ } // if it uses one of the special colours it's under display_day_lights if (idx <= 224 + LIGHT_COUNT) { - return display_day_lights[idx*3 + 0]<<16 | display_day_lights[idx*3 + 1]<<8 | display_day_lights[idx*3 + 2]; + uint8 lidx = idx - 224; + return display_day_lights[lidx*3 + 0]<<16 | display_day_lights[lidx*3 + 1]<<8 | display_day_lights[lidx*3 + 2]; } // Return black for anything else return 0;