From 4b6b81b1902e94f1e17c5eb5de1fe77490b9a37c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Wed, 7 Jul 2021 13:55:48 +0200 Subject: [PATCH] Fix -Wdelete-incomplete warnings --- src/KingSystem/Map/mapObjectLink.cpp | 1 + src/KingSystem/Map/mapPlacementTree.h | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/KingSystem/Map/mapObjectLink.cpp b/src/KingSystem/Map/mapObjectLink.cpp index 2f2d44ca..ebda8430 100644 --- a/src/KingSystem/Map/mapObjectLink.cpp +++ b/src/KingSystem/Map/mapObjectLink.cpp @@ -3,6 +3,7 @@ #include "KingSystem/ActorSystem/actActorConstDataAccess.h" #include "KingSystem/Map/mapObject.h" #include "KingSystem/Map/mapObjectGenGroup.h" +#include "KingSystem/Map/mapRail.h" namespace ksys::map { diff --git a/src/KingSystem/Map/mapPlacementTree.h b/src/KingSystem/Map/mapPlacementTree.h index 13818b34..f88bd25a 100644 --- a/src/KingSystem/Map/mapPlacementTree.h +++ b/src/KingSystem/Map/mapPlacementTree.h @@ -9,6 +9,8 @@ using F32Limits = std::numeric_limits; namespace ksys::map { +class Object; + // FIXME class PlacementTree { struct TreeObject { @@ -27,7 +29,7 @@ public: sead::Buffer mBuffer{}; sead::Buffer mObjects{}; void* _20{}; - void* _28{}; + Object** _28{}; u32 _30{}; f32 _34 = F32Limits::max(); f32 _38 = F32Limits::max();