From fc7e215e80745a04228f59933c7a6c8e268aab37 Mon Sep 17 00:00:00 2001 From: Pan7 Date: Tue, 15 Aug 2017 22:02:16 +0200 Subject: [PATCH] Q3data: Fix warning variable shortestSide is used uninitialized --- tools/quake3/q3data/md3lib.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/quake3/q3data/md3lib.c b/tools/quake3/q3data/md3lib.c index 78805b44..739c8aff 100644 --- a/tools/quake3/q3data/md3lib.c +++ b/tools/quake3/q3data/md3lib.c @@ -82,6 +82,11 @@ void MD3_ComputeTagFromTri( md3Tag_t *pTag, const float pTri[3][3] ){ hypotSide = 2; origin = 1; } + else + { + Error( "invalid tag triangle, must be a right triangle with unequal length sides" ); + return; + } len[hypotSide] = -1; if ( len[0] > len[1] && len[0] > len[2] ) {