mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
using memcmp instead of comparing each float
This commit is contained in:
parent
434b8d421e
commit
12aa28bc1d
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
|||
#include <vector>
|
||||
|
||||
#include "Vector3.h"
|
||||
|
||||
inline bool Sapphire::Common::FFXIVARR_POSITION3::operator == ( const FFXIVARR_POSITION3 & target ) const
|
||||
inline bool Sapphire::Common::FFXIVARR_POSITION3::operator == ( const FFXIVARR_POSITION3& target ) const
|
||||
{
|
||||
return ( this->x == target.x && this->y == target.y && this->z == target.z );
|
||||
return !memcmp( this, &target, sizeof( FFXIVARR_POSITION3 ) );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue