mirror of
https://github.com/godotengine/godot.git
synced 2025-01-18 20:40:57 +08:00
Fix accidental cast to Vector3 for Vector2 iter
This commit is contained in:
parent
861f1d3490
commit
36e8bee752
@ -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 New Issue
Block a user