Fix accidental cast to Vector3 for Vector2 iter

This commit is contained in:
Hein-Pieter van Braam 2017-09-19 14:18:12 +02:00
parent 861f1d3490
commit 36e8bee752

View file

@ -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++;