From 4a15eedb05f2b5d4054ef99a3cefc259d1713d27 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 1 Oct 2023 12:49:03 -0700 Subject: [PATCH] add missing return in palette.new --- pal_from_spr.p8 | 1 + 1 file changed, 1 insertion(+) diff --git a/pal_from_spr.p8 b/pal_from_spr.p8 index dc9c7ed..6557ea5 100644 --- a/pal_from_spr.p8 +++ b/pal_from_spr.p8 @@ -170,6 +170,7 @@ function palette.new(x) if (not x.cols) x.cols = {} if (not x.tr) x.tr = {} setmetatable(x, palette_mt) + return x end function palette:do_pal(p)