Havok: Silence hkHalf copy constructor warning

This commit is contained in:
Léo Lam 2022-01-13 22:41:54 +01:00
parent 359fb2685b
commit d696cfa65d
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ public:
m_value = hkInt16(t >> 16);
}
hkHalf(const hkHalf&) = default;
hkHalf& operator=(const float& f) {
int t = ((const int*)&f)[0];
m_value = hkInt16(t >> 16);