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:
parent
ed52d9acb9
commit
2890280934
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user