diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2019-10-13 08:44:44 +0200 |
---|---|---|
committer | Gilles Roudiere <gilles.roudiere@gmail.com> | 2019-10-13 08:44:44 +0200 |
commit | b27ec4aea736313f3931b7d8019132533febf4a7 (patch) | |
tree | ba3ea7b75eb6e14799191b9a0ce662eb96063891 /scene/2d | |
parent | a9fe81efbd748a16a0c01d822d0b08eacea04880 (diff) |
Fixes Sprite frame_coords
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/sprite.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/sprite.cpp b/scene/2d/sprite.cpp index 83f92ce2bc..d2e1e494e3 100644 --- a/scene/2d/sprite.cpp +++ b/scene/2d/sprite.cpp @@ -269,8 +269,8 @@ int Sprite::get_frame() const { } void Sprite::set_frame_coords(const Vector2 &p_coord) { - ERR_FAIL_INDEX(int(p_coord.x), vframes); - ERR_FAIL_INDEX(int(p_coord.y), hframes); + ERR_FAIL_INDEX(int(p_coord.x), hframes); + ERR_FAIL_INDEX(int(p_coord.y), vframes); set_frame(int(p_coord.y) * hframes + int(p_coord.x)); } |