From c7f09e01719ad081548a5f46f5f6614a02334e6e Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 11 Dec 2024 19:44:03 +0100 Subject: Core/Vmaps: Minor cleanup (formatting) and documentation updates for BIH::build copy vs move choice (cherry picked from commit 62dbb0619b552d22ec35f89249553b518af609b7) --- src/common/Collision/Models/GameObjectModel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/Collision/Models/GameObjectModel.cpp') diff --git a/src/common/Collision/Models/GameObjectModel.cpp b/src/common/Collision/Models/GameObjectModel.cpp index 9fcf1b85e20..7e8d0b9d438 100644 --- a/src/common/Collision/Models/GameObjectModel.cpp +++ b/src/common/Collision/Models/GameObjectModel.cpp @@ -122,7 +122,7 @@ bool GameObjectModel::initialize(std::unique_ptr model iInvRot = iRotation.inverse(); // transform bounding box: mdl_box = AABox(mdl_box.low() * iScale, mdl_box.high() * iScale); - AABox rotated_bounds; + AABox rotated_bounds = G3D::AABox::empty(); for (int i = 0; i < 8; ++i) rotated_bounds.merge(iRotation * mdl_box.corner(i)); @@ -252,7 +252,7 @@ bool GameObjectModel::UpdatePosition() iInvRot = iRotation.inverse(); // transform bounding box: mdl_box = AABox(mdl_box.low() * iScale, mdl_box.high() * iScale); - AABox rotated_bounds; + AABox rotated_bounds = G3D::AABox::empty(); for (int i = 0; i < 8; ++i) rotated_bounds.merge(iRotation * mdl_box.corner(i)); -- cgit v1.2.3