From 20b31d9eea43528831323ae88f8db5d5b0336d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9sz=C3=A1ros=20Gergely?= Date: Tue, 19 Apr 2022 00:17:23 +0200 Subject: [PATCH] Fix wrong type for prec typedArray --- modules/submap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/submap.js b/modules/submap.js index 09853f97..92d30865 100644 --- a/modules/submap.js +++ b/modules/submap.js @@ -58,7 +58,7 @@ window.Submap = (function () { const n = grid.points.length; grid.cells.h = new Uint8Array(n); // heightmap grid.cells.temp = new Int8Array(n); // temperature - grid.cells.prec = new Int8Array(n); // precipitation + grid.cells.prec = new Uint8Array(n); // precipitation const reverseGridMap = new Uint32Array(n); // cellmap from new -> oldcell const oldGrid = parentMap.grid;