Explorar o código

Fix size in HeightMapShapeBullet::set_data

Rémi Verschelde %!s(int64=6) %!d(string=hai) anos
pai
achega
de4d7a785e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/bullet/shape_bullet.cpp

+ 1 - 1
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();