Skip to content

Commit

Permalink
On a second thought it's probably TESForm and not TESBoundObject sinc…
Browse files Browse the repository at this point in the history
…e shouts are not bound objects.
  • Loading branch information
Zebrina committed Feb 19, 2024
1 parent baf0c8c commit c3c9df7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/RE/A/AIProcess.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ namespace RE

struct EquippedObject
{
TESBoundObject* object; // 00
BGSEquipSlot* slot; // 08
TESForm* object; // 00
BGSEquipSlot* slot; // 08
};
static_assert(sizeof(EquippedObject) == 0x10);

Expand Down Expand Up @@ -209,7 +209,7 @@ namespace RE
float deathTime; // 094
float trackedDamage; // 098
std::uint32_t pad09C; // 09C
BSTArray<EquippedObject> equippedForms; // 0A0
BSTArray<EquippedObject> equippedForms; // 0A0
Data0B8 unk0B8; // 0B8
TESForm* equippedObjects[Hand::kTotal]; // 0F0
std::uint64_t unk100; // 100
Expand Down
2 changes: 1 addition & 1 deletion include/RE/A/Actor.h
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ namespace RE
const TESShout* GetCurrentShout() const;
InventoryEntryData* GetEquippedEntryData(bool a_leftHand) const;
TESForm* GetEquippedObject(bool a_leftHand) const;
TESBoundObject* GetEquippedObjectInSlot(const BGSEquipSlot* slot) const;
TESForm* GetEquippedObjectInSlot(const BGSEquipSlot* slot) const;
float GetEquippedWeight();
std::int32_t GetFactionRank(TESFaction* a_faction, bool a_isPlayer);
std::int32_t GetGoldAmount(bool a_noInit = false);
Expand Down
2 changes: 1 addition & 1 deletion src/RE/A/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ namespace RE
}
}

TESBoundObject* Actor::GetEquippedObjectInSlot(const BGSEquipSlot* slot) const
TESForm* Actor::GetEquippedObjectInSlot(const BGSEquipSlot* slot) const
{
if (!currentProcess) {
return nullptr;
Expand Down

0 comments on commit c3c9df7

Please sign in to comment.