1
Fork 0
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:
AriAvery 2019-02-06 11:23:16 +01:00
parent 434b8d421e
commit 12aa28bc1d

View file

@ -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 ) );
}