aboutsummaryrefslogtreecommitdiff
path: root/tr8as.c
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-05-04 23:01:09 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-05-04 23:01:09 +0100
commit3f55bafdeddd9893760c2e165756c7bbc575b027 (patch)
treee626f7ffe2367b5271a0693afdab750dd1fc5ba9 /tr8as.c
parentbdbb811ac1a60920f87a5640f2f68e7f349fe2c0 (diff)
downloadtr8vm-3f55bafdeddd9893760c2e165756c7bbc575b027.tar.gz
tr8vm-3f55bafdeddd9893760c2e165756c7bbc575b027.zip
Make index zero any RGB value not found in the palette
Mask TBD
Diffstat (limited to 'tr8as.c')
-rw-r--r--tr8as.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tr8as.c b/tr8as.c
index c9bd816..ab471e5 100644
--- a/tr8as.c
+++ b/tr8as.c
@@ -501,7 +501,7 @@ static uint8_t parse_incpng(As *as, char *c)
break;
}
if (index == 16)
- addr++;
+ as->out[addr++] = 0;
}
as->addr = addr;