Browse Source

bullet: Fix BulletHeightfieldShape::fillin

Closes #860
CYBERDEViLNL 5 years ago
parent
commit
dbb65549ea
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/bullet/bulletHeightfieldShape.cxx

+ 1 - 1
panda/src/bullet/bulletHeightfieldShape.cxx

@@ -200,7 +200,7 @@ fillin(DatagramIterator &scan, BamReader *manager) {
 
   size_t size = (size_t)_num_rows * (size_t)_num_cols;
   delete [] _data;
-  _data = new float[size];
+  _data = new btScalar[size];
 
   for (size_t i = 0; i < size; ++i) {
     _data[i]  = scan.get_stdfloat();