igs017.c: quick and dirty fix for last remaining generic_paletteram regression, will fix more nicely when I have time (nw)