From cf0ab4aa450fce4685d7eee4c4c138a75d3e661e Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 10 Jul 2022 17:40:22 +0200 Subject: [PATCH] Light cleanup --- r5dev/engine/debugoverlay.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/r5dev/engine/debugoverlay.cpp b/r5dev/engine/debugoverlay.cpp index 0fc46eff..1691bab6 100644 --- a/r5dev/engine/debugoverlay.cpp +++ b/r5dev/engine/debugoverlay.cpp @@ -68,13 +68,13 @@ void DestroyOverlay(OverlayBase_t* pOverlay) switch (pOverlay->m_Type) { case OverlayType_t::OVERLAY_BOX: - pOverlaySize = 128i64; + pOverlaySize = sizeof(OverlayBox_t); goto LABEL_MALLOC; case OverlayType_t::OVERLAY_SPHERE: - pOverlaySize = 72i64; + pOverlaySize = sizeof(OverlaySphere_t); goto LABEL_MALLOC; case OverlayType_t::OVERLAY_LINE: - pOverlaySize = 80i64; + pOverlaySize = sizeof(OverlayLine_t); goto LABEL_MALLOC; case OverlayType_t::OVERLAY_TRIANGLE: pOverlaySize = 6200i64; @@ -87,7 +87,7 @@ void DestroyOverlay(OverlayBase_t* pOverlay) pOverlaySize = 88i64; goto LABEL_MALLOC; case OverlayType_t::OVERLAY_CAPSULE: - pOverlaySize = 112i64; + pOverlaySize = sizeof(OverlayCapsule_t); break; case OverlayType_t::OVERLAY_UNK0: pOverlaySize = 88i64;