diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-19 14:18:12 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-09-19 14:18:12 +0200 |
commit | 36e8bee7524ca71609e14b71c7bf427eb832179a (patch) | |
tree | ed46d2b18ae60bf624aab5c370a06179d92ac6df | |
parent | 861f1d34909f3fe0fe5f797db14df75a1ec1a635 (diff) |
Fix accidental cast to Vector3 for Vector2 iter
-rw-r--r-- | core/variant_op.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant_op.cpp b/core/variant_op.cpp index d67466556d..142919337d 100644 --- a/core/variant_op.cpp +++ b/core/variant_op.cpp @@ -2676,7 +2676,7 @@ bool Variant::iter_next(Variant &r_iter, bool &valid) const { return true; } break; case VECTOR2: { - int64_t to = reinterpret_cast<const Vector3 *>(_data._mem)->y; + int64_t to = reinterpret_cast<const Vector2 *>(_data._mem)->y; int64_t idx = r_iter; idx++; |