Skip to content

Commit

Permalink
Fix compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zax-ftw authored and powerof3 committed Aug 16, 2024
1 parent 05ece3e commit 7b65d4e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions include/RE/A/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

namespace RE
{
enum class FIGHT_REACTION;

class ActorMagicCaster;
class ActorMover;
class AIProcess;
Expand Down
1 change: 1 addition & 0 deletions include/RE/B/bhkCharacterController.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/RE/A/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_t> func{ RELOCATION_ID(36658, 37666) };
return func(this, a_other);
}
Expand Down Expand Up @@ -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_t> func{ RELOCATION_ID(37618, 38571) };
return func(this, a_other);
}
Expand Down
2 changes: 1 addition & 1 deletion src/RE/T/TESObjectREFR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_t> func{ RELOCATION_ID(19396, 19823) };
return func(this, a_other, a_disabledRefs, a_ignoreWorldspace);
}
Expand Down

0 comments on commit 7b65d4e

Please sign in to comment.