aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-03-13 18:19:22 +0100
committerShauren <shauren.trinity@gmail.com>2024-03-13 18:19:22 +0100
commit18200e1b88596dbead10d0b8ecbd10557db43323 (patch)
treeb9598edff96623951d5398c521408ee5c874779e /src
parent37899f395476c5f1c9d092a8f8425d2a379eeac7 (diff)
Core/vmaps: Reset BIH::bounds on tree rebuilds
Diffstat (limited to 'src')
-rw-r--r--src/common/Collision/BoundingIntervalHierarchy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/Collision/BoundingIntervalHierarchy.h b/src/common/Collision/BoundingIntervalHierarchy.h
index 59423581af8..9ea072a19db 100644
--- a/src/common/Collision/BoundingIntervalHierarchy.h
+++ b/src/common/Collision/BoundingIntervalHierarchy.h
@@ -69,6 +69,7 @@ class TC_COMMON_API BIH
{
tree.clear();
objects.clear();
+ bounds = G3D::AABox::empty();
// create space for the first node
tree.push_back(3u << 30u); // dummy leaf
tree.insert(tree.end(), 2, 0);