shithub: puzzles

Download patch

ref: 9b1b7e0f3a6858da2bdd3d855a1a9c2801122f30
parent: 1380b55b5b9b5a841f3375f6c3f614105f1b6884
author: Jonas Kölker <jonaskoelker@yahoo.com>
date: Mon Sep 21 12:24:10 EDT 2015

Don't overallocate colour memory in Loopy.

--- a/loopy.c
+++ b/loopy.c
@@ -850,7 +850,7 @@
 
 static float *game_colours(frontend *fe, int *ncolours)
 {
-    float *ret = snewn(4 * NCOLOURS, float);
+    float *ret = snewn(3 * NCOLOURS, float);
 
     frontend_default_colour(fe, &ret[COL_BACKGROUND * 3]);