ref: 69eca65ef32833f7a0766d1bb5a736c8b36d8d43
parent: 202b7467d8ad52748eafaf20dfe8136f3f426aad
author: Ben Harris <bjh21@bjh21.me.uk>
date: Tue Dec 6 08:34:27 EST 2022
Assert that the back-end has provided a background colour If we're going to refer to a specific colour, it seems appropriate to insist that it exists.
--- a/midend.c
+++ b/midend.c
@@ -1312,6 +1312,7 @@
float *ret;
ret = me->ourgame->colours(me->frontend, ncolours);
+ assert(*ncolours >= 1);
{
int i;