From 9297cc7c794eb4221c260b34e7335449b0cf27d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20=C4=8C=C3=AD=C5=BE?= Date: Sun, 12 May 2019 17:42:03 +0200 Subject: [PATCH] Fix uninitialized value --- s3l.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/s3l.h b/s3l.h index 87b7def..e76ff0b 100644 --- a/s3l.h +++ b/s3l.h @@ -508,9 +508,9 @@ void S3L_makeScaleMatrix( { #define M(x,y) (*m)[x][y] - M(0,0) = scaleX; M(2,0) = 0; M(3,0) = 0; + M(0,0) = scaleX; M(1,0) = 0; M(2,0) = 0; M(3,0) = 0; M(0,1) = 0; M(1,1) = scaleY; M(2,1) = 0; M(3,1) = 0; - M(0,2) = 0; M(1,2) = 0; M(2,2) = scaleZ; M(3,2) = 0; + M(0,2) = 0; M(1,2) = 0; M(2,2) = scaleZ; M(3,2) = 0; M(0,3) = 0; M(1,3) = 0; M(2,3) = 0; M(3,3) = S3L_FRACTIONS_PER_UNIT; #undef M @@ -1374,7 +1374,7 @@ void S3L_drawModelIndexed( S3L_Index coordIndex = 0; S3L_Vec4 pointModel, transformed0, transformed1, transformed2; - S3L_Unit indexIndex; + S3L_Unit indexIndex = 0; pointModel.w = S3L_FRACTIONS_PER_UNIT; // has to be "1.0" for translation