bugfix: palette offset
authorecalot <ecalot>
Mon, 21 Jun 2004 20:57:54 +0000 (20:57 +0000)
committerecalot <ecalot>
Mon, 21 Jun 2004 20:57:54 +0000 (20:57 +0000)
FP/src/res/resources.c

index 31c5611a835131be2c9727edbfd8262012cd4184..83de2dd223171af2f9b35f15b264098974a8d86f 100644 (file)
@@ -98,7 +98,7 @@ void res_createFrames(tMemory data,int type,void** returnValue,int number) {
                                        printf("Fatal error: res_createFrames: invalid palette\n");
                                        exit(1);
                                }
-                               memcpy(image.pal,data.array+1,16);
+                               memcpy(image.pal,data.array+5,16*3);
                                printf("res_createFrames: Remembering palette\n",number,type);
                                return;
                        } else {