From 36e8bee7524ca71609e14b71c7bf427eb832179a Mon Sep 17 00:00:00 2001 From: Hein-Pieter van Braam Date: Tue, 19 Sep 2017 14:18:12 +0200 Subject: Fix accidental cast to Vector3 for Vector2 iter --- core/variant_op.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(_data._mem)->y; + int64_t to = reinterpret_cast(_data._mem)->y; int64_t idx = r_iter; idx++; -- cgit v1.2.3