mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 12:01:10 +00:00
Merge pull request #551 from Pan7/fixq3data2
Q3data: Fix warning variable shortestSide is used uninitialized
This commit is contained in:
commit
16d42f3e64
1 changed files with 5 additions and 0 deletions
|
@ -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] ) {
|
||||
|
|
Loading…
Reference in a new issue