2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-17 00:17:03 +00:00

Minor cleanups in Collision code

This commit is contained in:
2021-07-24 17:54:26 -07:00
parent e331c5d5c6
commit 30f17812cd
4 changed files with 48 additions and 33 deletions

View File

@@ -27,7 +27,7 @@ CCollisionActorManager::CCollisionActorManager(CStateManager& mgr, TUniqueId own
if (modDesc.GetNextId().IsInvalid()) {
// We only have the pivot id
const TUniqueId newId = mgr.AllocateUniqueId();
CCollisionActor* newAct;
CCollisionActor* newAct = nullptr;
if (modDesc.GetType() == CJointCollisionDescription::ECollisionType::Sphere) {
newAct = new CCollisionActor(newId, area, x10_ownerId, active, modDesc.GetRadius(), modDesc.GetMass(),