From 7b65d4e96ef33742bb6e4f8c7d97e4f408609f53 Mon Sep 17 00:00:00 2001 From: Zax Ftw Date: Thu, 15 Aug 2024 23:18:24 +0200 Subject: [PATCH] Fix compilation errors --- include/RE/A/Actor.h | 2 ++ include/RE/B/bhkCharacterController.h | 1 + src/RE/A/Actor.cpp | 4 ++-- src/RE/T/TESObjectREFR.cpp | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/RE/A/Actor.h b/include/RE/A/Actor.h index 09b47219b..12fb97a30 100644 --- a/include/RE/A/Actor.h +++ b/include/RE/A/Actor.h @@ -28,6 +28,8 @@ namespace RE { + enum class FIGHT_REACTION; + class ActorMagicCaster; class ActorMover; class AIProcess; diff --git a/include/RE/B/bhkCharacterController.h b/include/RE/B/bhkCharacterController.h index 602d8e9c4..9c1094e67 100644 --- a/include/RE/B/bhkCharacterController.h +++ b/include/RE/B/bhkCharacterController.h @@ -9,6 +9,7 @@ #include "RE/H/hkpCharacterContext.h" #include "RE/H/hkpCharacterControl.h" #include "RE/H/hkpCharacterState.h" +#include "RE/M/MaterialIDs.h" #include "RE/N/NiPoint3.h" #include "RE/N/NiRefObject.h" #include "RE/N/NiSmartPointer.h" diff --git a/src/RE/A/Actor.cpp b/src/RE/A/Actor.cpp index 0b430e181..a74f7ecbe 100644 --- a/src/RE/A/Actor.cpp +++ b/src/RE/A/Actor.cpp @@ -437,7 +437,7 @@ namespace RE FIGHT_REACTION Actor::GetFactionReaction(Actor* a_other) const { - using func_t = decltype(&GetFactionReaction); + using func_t = decltype(&Actor::GetFactionReaction); REL::Relocation func{ RELOCATION_ID(36658, 37666) }; return func(this, a_other); } @@ -799,7 +799,7 @@ namespace RE bool Actor::IsCombatTarget(Actor* a_other) const { - using func_t = decltype(&IsCombatTarget); + using func_t = decltype(&Actor::IsCombatTarget); REL::Relocation func{ RELOCATION_ID(37618, 38571) }; return func(this, a_other); } diff --git a/src/RE/T/TESObjectREFR.cpp b/src/RE/T/TESObjectREFR.cpp index 166c3737d..de3ef30d5 100644 --- a/src/RE/T/TESObjectREFR.cpp +++ b/src/RE/T/TESObjectREFR.cpp @@ -206,7 +206,7 @@ namespace RE float TESObjectREFR::GetDistance(TESObjectREFR* a_other, bool a_disabledRefs, bool a_ignoreWorldspace) const { - using func_t = decltype(&GetDistance); + using func_t = decltype(&TESObjectREFR::GetDistance); REL::Relocation func{ RELOCATION_ID(19396, 19823) }; return func(this, a_other, a_disabledRefs, a_ignoreWorldspace); }