aboutsummaryrefslogtreecommitdiffstats
path: root/gb_math.hpp
diff options
context:
space:
mode:
authorGravatar gingerBill 2015-11-22 21:18:51 +0000
committerGravatar gingerBill 2015-11-22 21:18:51 +0000
commitddcc4824183c0629a0340d2ab1d2344e8289fdf7 (patch)
treeaccd4a3b845d0e245b05d45f83c3a27f3af82771 /gb_math.hpp
parentMerge pull request #2 from bullno1/gb_ini-error_handling (diff)
Many bug fixes
Fix Hash_Table Fix gb_ini Error Handling
Diffstat (limited to 'gb_math.hpp')
-rw-r--r--gb_math.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gb_math.hpp b/gb_math.hpp
index fe7db54..664c8ec 100644
--- a/gb_math.hpp
+++ b/gb_math.hpp
@@ -3793,7 +3793,7 @@ perlin_grad(s32 hash, f32 x, f32 y, f32 z)
0,1,2,3,4,5,6,7,8,9,10,11,
};
- f32* grad = basis[indices[hash & 63]];
+ const f32* grad = basis[indices[hash & 63]];
return grad[0]*x + grad[1]*y + grad[2]*z;
}