1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-22 10:22:52 +01:00

Convert default initialization to value initialization

Default initialization has a problem,
it doesn't initialize POD class,
so it's safer to use value initialization,
especially for "outside" class (like bullet).
This commit is contained in:
Filip Gawin 2017-08-25 18:59:00 +02:00 committed by Daniel Evans
parent ed52d9acb9
commit 2890280934

View File

@ -64,7 +64,7 @@ void CharacterObject::createActor(const glm::vec2& size) {
tf.setIdentity();
tf.setOrigin(btVector3(position.x, position.y, position.z));
physObject = new btPairCachingGhostObject;
physObject = new btPairCachingGhostObject();
physObject->setUserPointer(this);
physObject->setWorldTransform(tf);
physShape = new btCapsuleShapeZ(size.x, size.y);