Skip to content

Commit

Permalink
fix: TESForm inheritance (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 authored Sep 17, 2023
1 parent 46883af commit 899b8fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 0 additions & 2 deletions CommonLibSF/include/RE/B/BaseFormComponent.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#pragma once

#include "RE/T/TESFormRefCount.h"

namespace RE
{
class BaseFormComponent
Expand Down
5 changes: 2 additions & 3 deletions CommonLibSF/include/RE/T/TESForm.h
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
#pragma once

#include "RE/B/BSReflection.h"
#include "RE/B/BaseFormComponent.h"
#include "RE/T/TESFile.h"
#include "RE/T/TESFormRefCount.h"

namespace RE
{
class TESObjectREFR;

class TESForm :
public BaseFormComponent, // 00
public TESFormRefCount, // 08
public TESFormRefCount, // 00
public BSReflection::IObject // 10
{
public:
Expand Down
8 changes: 5 additions & 3 deletions CommonLibSF/include/RE/T/TESFormRefCount.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#pragma once

#include "RE/B/BaseFormComponent.h"

namespace RE
{
struct TESFormRefCount
struct TESFormRefCount : public BaseFormComponent
{
public:
SF_RTTI(TESFormRefCount);

// members
volatile mutable std::uint64_t refCount; // 0x0
volatile mutable std::uint64_t refCount; // 08
};
static_assert(sizeof(TESFormRefCount) == 0x08);
static_assert(sizeof(TESFormRefCount) == 0x10);
}

0 comments on commit 899b8fa

Please sign in to comment.