Dep: Silenced build warning in G3D header, part2, forgot to save

This commit is contained in:
Shauren
2015-08-01 19:03:26 +02:00
parent 22653c99f8
commit cce7f1adf2
2 changed files with 16 additions and 3 deletions

View File

@@ -13,3 +13,16 @@ index 04e11e0..b26708a 100644
}
/** Make unit length in place */
@@ -349,9 +349,9 @@ public:
the magnitude.
*/
Quat toUnit() const {
- Quat x = *this;
- x.unitize();
- return x;
+ Quat copyOfThis = *this;
+ copyOfThis.unitize();
+ return copyOfThis;
}
/**

View File

@@ -349,9 +349,9 @@ public:
the magnitude.
*/
Quat toUnit() const {
Quat x = *this;
x.unitize();
return x;
Quat copyOfThis = *this;
copyOfThis.unitize();
return copyOfThis;
}
/**