From dbb65549ea3659070574a66becdb999539663099 Mon Sep 17 00:00:00 2001 From: CYBERDEViLNL Date: Mon, 27 Jan 2020 23:36:45 +0000 Subject: [PATCH] bullet: Fix BulletHeightfieldShape::fillin Closes #860 --- panda/src/bullet/bulletHeightfieldShape.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/bullet/bulletHeightfieldShape.cxx b/panda/src/bullet/bulletHeightfieldShape.cxx index 08f91bd036..55ed86d16e 100644 --- a/panda/src/bullet/bulletHeightfieldShape.cxx +++ b/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();