diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-12-27 10:29:04 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2018-12-27 10:29:25 +0100 |
commit | de4d7a785e06b2508dad5c4bf3f43a1b836f8b7a (patch) | |
tree | 3753838ac52523f25ba5bda2d92623835ac74f53 /modules/bullet | |
parent | ac118434eeaa0bc02ba82b5e829bb9efbe4ada9f (diff) |
Fix size in HeightMapShapeBullet::set_data
Diffstat (limited to 'modules/bullet')
-rw-r--r-- | modules/bullet/shape_bullet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bullet/shape_bullet.cpp b/modules/bullet/shape_bullet.cpp index 2027d8e1eb..55dcd9c323 100644 --- a/modules/bullet/shape_bullet.cpp +++ b/modules/bullet/shape_bullet.cpp @@ -487,7 +487,7 @@ void HeightMapShapeBullet::set_data(const Variant &p_data) { PoolByteArray im_data = l_image->get_data(); - l_heights.resize(l_image->get_width() * l_image->get_width()); + l_heights.resize(l_image->get_width() * l_image->get_height()); PoolRealArray::Write w = l_heights.write(); PoolByteArray::Read r = im_data.read(); |