summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarynate <mary.w.nate@gmail.com>2014-03-29 00:05:02 +0800
committermarynate <mary.w.nate@gmail.com>2014-03-29 00:06:25 +0800
commit6e1e66878c988e921ceea8c19d3dd3b6ff882965 (patch)
treea8c70e925592b7a036f55cca2ca9668609d258a8
parente20e3c9525c2f0d5bb95e85138a8d88a0088d439 (diff)
Fix Variant vector2/vecotor3 multiply bug
-rw-r--r--core/variant_op.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp
index 50908bbf94..7f46f4c322 100644
--- a/core/variant_op.cpp
+++ b/core/variant_op.cpp
@@ -103,8 +103,8 @@ case m_name: {\
case BOOL: _RETURN( p_a._data.m_type m_op p_b._data._bool);\
case INT: _RETURN( p_a._data.m_type m_op p_b._data._int);\
case REAL: _RETURN( p_a._data.m_type m_op p_b._data._real);\
- case VECTOR2: _RETURN( p_a._data.m_type m_op *reinterpret_cast<const Vector2*>(p_a._data._mem));\
- case VECTOR3: _RETURN( p_a._data.m_type m_op *reinterpret_cast<const Vector3*>(p_a._data._mem));\
+ case VECTOR2: _RETURN( p_a._data.m_type m_op *reinterpret_cast<const Vector2*>(p_b._data._mem));\
+ case VECTOR3: _RETURN( p_a._data.m_type m_op *reinterpret_cast<const Vector3*>(p_b._data._mem));\
default: {}\
}\
r_valid=false;\