From 2235f6268043f5b31c6129401e2e5580ab67d991 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Wed, 24 Jun 2026 02:58:03 -0700 Subject: [PATCH] fixes --- dGame/Entity.cpp | 3 ++- dGame/dComponents/ProximityMonitorComponent.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dGame/Entity.cpp b/dGame/Entity.cpp index bc6fbe8f..ab1589d5 100644 --- a/dGame/Entity.cpp +++ b/dGame/Entity.cpp @@ -2242,8 +2242,9 @@ bool Entity::MsgRequestServerObjectInfo(GameMessages::RequestServerObjectInfo& r objectInfo.PushDebug("Spawner's Object ID", "LWOOBJID") = std::to_string(GetSpawnerID()); objectInfo.PushDebug("Owner override", "LWOOBJID") = std::to_string(m_OwnerOverride); auto& children = objectInfo.PushDebug("Child Objects"); + int i = 1; for (const auto* child : m_ChildEntities) { - if (child) children.PushDebug("Child", "LWOOBJID") = std::to_string(child->GetObjectID()); + if (child) children.PushDebug("Child " + std::to_string(i++), "LWOOBJID") = std::to_string(child->GetObjectID()); } auto& componentDetails = objectInfo.PushDebug("Component Information"); diff --git a/dGame/dComponents/ProximityMonitorComponent.cpp b/dGame/dComponents/ProximityMonitorComponent.cpp index e238c352..ca48a429 100644 --- a/dGame/dComponents/ProximityMonitorComponent.cpp +++ b/dGame/dComponents/ProximityMonitorComponent.cpp @@ -80,8 +80,9 @@ bool ProximityMonitorComponent::OnGetObjectReportInfo(GameMessages::GetObjectRep proxAmf.PushDebug("Position").PushDebug(entity->GetPosition()); proxAmf.PushDebug("Rotation").PushDebug(entity->GetRotation()); auto& collidingAmf = proxAmf.PushDebug("Colliding Objects"); + int i = 1; for (const auto& colliding : entity->GetCurrentlyCollidingObjects()) { - collidingAmf.PushDebug(std::to_string(colliding), "LWOOBJID"); + collidingAmf.PushDebug(std::to_string(i++), "LWOOBJID") = std::to_string(colliding); } }