Fix updatePalette()

We should set the SDL palette to the object-wide palette, rather than
setting it to a just-initialized-with-zeros local.