aboutsummaryrefslogtreecommitdiff
path: root/src/common/Collision/Models/GameObjectModel.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-12-11 19:44:03 +0100
committerOvahlord <dreadkiller@gmx.de>2024-12-12 19:59:07 +0100
commitc7f09e01719ad081548a5f46f5f6614a02334e6e (patch)
treefec7ecf821e467f639c5334b08c057edad401e73 /src/common/Collision/Models/GameObjectModel.cpp
parent3d680ff9baaa0a837d8e8fea185554c16fea97da (diff)
Core/Vmaps: Minor cleanup (formatting) and documentation updates for BIH::build copy vs move choice
(cherry picked from commit 62dbb0619b552d22ec35f89249553b518af609b7)
Diffstat (limited to 'src/common/Collision/Models/GameObjectModel.cpp')
-rw-r--r--src/common/Collision/Models/GameObjectModel.cpp4
1 files changed, 2 insertions, 2 deletions
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<GameObjectModelOwnerBase> 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));