Merge pull request #42012 from vnen/variant-fix-vectori-mult
Fix Vector{2,3}i casting on Variant multiplication with numbers
This commit is contained in:
commit
43725691b9
1 changed files with 16 additions and 16 deletions
|
@ -256,9 +256,9 @@ bool Variant::booleanize() const {
|
|||
if (p_b.type == VECTOR3) \
|
||||
_RETURN(p_a._data.m_type m_op *reinterpret_cast<const Vector3 *>(p_b._data._mem)); \
|
||||
if (p_b.type == VECTOR2I) \
|
||||
_RETURN(p_a._data.m_type m_op *reinterpret_cast<const Vector2 *>(p_b._data._mem)); \
|
||||
_RETURN(p_a._data.m_type m_op *reinterpret_cast<const Vector2i *>(p_b._data._mem)); \
|
||||
if (p_b.type == VECTOR3I) \
|
||||
_RETURN(p_a._data.m_type m_op *reinterpret_cast<const Vector3 *>(p_b._data._mem)); \
|
||||
_RETURN(p_a._data.m_type m_op *reinterpret_cast<const Vector3i *>(p_b._data._mem)); \
|
||||
\
|
||||
_RETURN_FAIL \
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue