Skip to content

Commit

Permalink
maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
powerof3 authored and github-actions[bot] committed May 17, 2024
1 parent f24c7a8 commit ef07aab
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/RE/C/ConcreteFormFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace RE
{
auto factory = IFormFactory::GetConcreteFormFactoryByType<T>();
auto form = factory ? factory->Create() : nullptr;

return form ? form->As<T>() : nullptr;
}
}
4 changes: 2 additions & 2 deletions include/RE/I/Inventory3DManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ namespace RE
void Begin3D(INTERFACE_LIGHT_SCHEME a_scheme);
void End3D();
void LoadInventoryItem(InventoryEntryData* a_objDesc);
void LoadInventoryItem(TESBoundObject* a_object, ExtraDataList* a_extraDataList);
void Render();
void LoadInventoryItem(TESBoundObject* a_object, ExtraDataList* a_extraDataList);
void Render();
bool ToggleItemZoom();
void UnloadInventoryItem();

Expand Down
4 changes: 2 additions & 2 deletions src/RE/I/Inventory3DManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ namespace RE

void Inventory3DManager::LoadInventoryItem(InventoryEntryData* a_objDesc)
{
using func_t = void (*)(Inventory3DManager*, InventoryEntryData*);
using func_t = void (*)(Inventory3DManager*, InventoryEntryData*);
REL::Relocation<func_t> func{ RELOCATION_ID(50884, 51757) };
return func(this, a_objDesc);
}

void Inventory3DManager::LoadInventoryItem(TESBoundObject* a_object, ExtraDataList* a_extraDataList)
{
using func_t = void (*)(Inventory3DManager*, TESBoundObject*, ExtraDataList*);
using func_t = void (*)(Inventory3DManager*, TESBoundObject*, ExtraDataList*);
REL::Relocation<func_t> func{ RELOCATION_ID(50885, 51758) };
return func(this, a_object, a_extraDataList);
}
Expand Down
2 changes: 1 addition & 1 deletion src/RE/N/NiCamera.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ namespace RE

bool NiCamera::WorldPtToScreenPt3(const float a_matrix[4][4], const NiRect<float>& a_port, const NiPoint3& a_point, float& a_xOut, float& a_yOut, float& a_zOut, float a_zeroTolerance)
{
using func_t = bool (*)(const float[4][4], const NiRect<float>&, const NiPoint3&, float&, float&, float&, float);
using func_t = bool (*)(const float[4][4], const NiRect<float>&, const NiPoint3&, float&, float&, float&, float);
REL::Relocation<func_t> func{ Offset::NiCamera::WorldPtToScreenPt3 };
return func(a_matrix, a_port, a_point, a_xOut, a_yOut, a_zOut, a_zeroTolerance);
}
Expand Down

0 comments on commit ef07aab

Please sign in to comment.