Merge pull request #551 from Pan7/fixq3data2

Q3data: Fix warning variable shortestSide is used uninitialized
This commit is contained in:
Pan7 2017-08-18 12:08:02 +02:00 committed by GitHub
commit 16d42f3e64

View file

@ -82,6 +82,11 @@ void MD3_ComputeTagFromTri( md3Tag_t *pTag, const float pTri[3][3] ){
hypotSide = 2; hypotSide = 2;
origin = 1; origin = 1;
} }
else
{
Error( "invalid tag triangle, must be a right triangle with unequal length sides" );
return;
}
len[hypotSide] = -1; len[hypotSide] = -1;
if ( len[0] > len[1] && len[0] > len[2] ) { if ( len[0] > len[1] && len[0] > len[2] ) {