diff --git a/panda/src/bullet/bulletCylinderShape.cxx b/panda/src/bullet/bulletCylinderShape.cxx index 8f95bc5591..28ca5d65b4 100644 --- a/panda/src/bullet/bulletCylinderShape.cxx +++ b/panda/src/bullet/bulletCylinderShape.cxx @@ -151,7 +151,7 @@ write_datagram(BamWriter *manager, Datagram &dg) { // parameters to serialize: radius, height, up _half_extents.write_datagram(dg); - dg.add_int8((int8_t)_shape->getUpAxis()); + dg.add_int8((int8_t)_up); } /**