Fix accidental cast to Vector3 for Vector2 iter
This commit is contained in:
parent
861f1d3490
commit
36e8bee752
1 changed files with 1 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue