bullet: Fix compilation issue with BulletHeightfieldShape

Fixes #1161
This commit is contained in:
Paul m. p. P 2021-05-31 17:43:25 +02:00 committed by rdb
parent 1d2407f667
commit 70ac82d5da

View File

@ -44,7 +44,7 @@ BulletHeightfieldShape(const PNMImage &image, PN_stdfloat max_height, BulletUpAx
_shape = new btHeightfieldTerrainShape(_num_rows,
_num_cols,
_data,
(const void *)_data,
max_height,
up,
true, false);
@ -102,7 +102,7 @@ BulletHeightfieldShape(Texture *tex, PN_stdfloat max_height, BulletUpAxis up) :
_shape = new btHeightfieldTerrainShape(_num_rows,
_num_cols,
_data,
(const void *)_data,
max_height,
up,
true, false);
@ -127,7 +127,7 @@ BulletHeightfieldShape(const BulletHeightfieldShape &copy) {
_shape = new btHeightfieldTerrainShape(_num_rows,
_num_cols,
_data,
(const void *)_data,
_max_height,
_up,
true, false);
@ -208,7 +208,7 @@ fillin(DatagramIterator &scan, BamReader *manager) {
_shape = new btHeightfieldTerrainShape(_num_rows,
_num_cols,
_data,
(const void *)_data,
_max_height,
_up,
true, false);