Skip to content

Commit f846624

Browse files
committed
Make relocations static
1 parent ee97a2f commit f846624

11 files changed

+13
-13
lines changed

extern/CommonLibSSE

Submodule CommonLibSSE updated 244 files

src/Experimental/UpdateGameTimers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Experimental::UpdateGameTimers
88
static void UpdateTimers(RE::PlayerCharacter* a_player)
99
{
1010
using func_t = decltype(&UpdateTimers);
11-
REL::Relocation<func_t> func{ REL_ID(39410, 40485) };
11+
static REL::Relocation<func_t> func{ REL_ID(39410, 40485) };
1212
return func(a_player);
1313
}
1414

src/Fixes/IsFurnitureAnimTypeForFurniture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Fixes::IsFurnitureAnimTypeForFurniture
1010
static std::uint32_t GetEquippedFurnitureType(RE::Actor* a_actor)
1111
{
1212
using func_t = decltype(&GetEquippedFurnitureType);
13-
REL::Relocation<func_t> func{ REL_ID(36720, 37732) };
13+
static REL::Relocation<func_t> func{ REL_ID(36720, 37732) };
1414
return func(a_actor);
1515
}
1616

src/Fixes/ToggleCollision.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Fixes::ToggleCollision
1212
static void ToggleGlobalCollision()
1313
{
1414
using func_t = decltype(&ToggleGlobalCollision);
15-
REL::Relocation<func_t> func{ REL_ID(13224, 13375) };
15+
static REL::Relocation<func_t> func{ REL_ID(13224, 13375) };
1616
return func();
1717
}
1818

src/Fixes/ToggleGlobalAI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Fixes::ToggleGlobalAI
77
static void ClearPath(RE::Actor* a_actor)
88
{
99
using func_t = decltype(&ClearPath);
10-
REL::Relocation<func_t> func{ REL_ID(36802, 37818) };
10+
static REL::Relocation<func_t> func{ REL_ID(36802, 37818) };
1111
return func(a_actor);
1212
}
1313

src/Fixes/UnderwaterCamera.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Fixes::UnderWaterCamera
88
static void UpdateUnderWaterVariables(RE::TESWaterSystem* a_manager, bool a_underWater, float a_waterHeight)
99
{
1010
using func_t = decltype(&UpdateUnderWaterVariables);
11-
REL::Relocation<func_t> func{ REL_ID(31409, 32216) };
11+
static REL::Relocation<func_t> func{ REL_ID(31409, 32216) };
1212
return func(a_manager, a_underWater, a_waterHeight);
1313
}
1414
};

src/Fixes/ValidateScreenshotFolder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace Fixes::ValidateScreenshotFolder
99
RE::Setting* set_ini_string(RE::Setting* a_setting, const char* a_str)
1010
{
1111
using func_t = decltype(&set_ini_string);
12-
REL::Relocation<func_t> func{ RELOCATION_ID(73882, 75619) };
12+
static REL::Relocation<func_t> func{ RELOCATION_ID(73882, 75619) };
1313
return func(a_setting, a_str);
1414
}
1515

src/Fixes/WornRestrictionsForWeapons.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Fixes::WornRestrictionsForWeapons
1818
auto wornRestrictionList = a_effect->data->data.wornRestrictions;
1919
auto keywordForm = a_item->data->object->As<RE::BGSKeywordForm>();
2020

21-
if (!wornRestrictionList || !keywordForm) {
21+
if (!wornRestrictionList) {
2222
return true;
2323
}
2424

src/Tweaks/FactionStealing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Tweaks::FactionStealing
1010
static std::int32_t GetFavorCost(RE::TESNPC* a_player, RE::TESNPC* a_owner)
1111
{
1212
using func_t = decltype(&GetFavorCost);
13-
REL::Relocation<func_t> func{ REL_ID(23626, 24078) };
13+
static REL::Relocation<func_t> func{ REL_ID(23626, 24078) };
1414
return func(a_player, a_owner);
1515
}
1616

src/Tweaks/GameTimeAffectsSounds.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace Tweaks::GameTimeAffectsSounds
4444
static void Play(RE::BSAudioManager* a_manager, std::int32_t a_soundID)
4545
{
4646
using func_t = decltype(&Play);
47-
REL::Relocation<func_t> func{ REL_ID(66408, 67671) };
47+
static REL::Relocation<func_t> func{ REL_ID(66408, 67671) };
4848
return func(a_manager, a_soundID);
4949
}
5050
};
@@ -69,7 +69,7 @@ namespace Tweaks::GameTimeAffectsSounds
6969
static void PlayAfter(RE::BSAudioManager* a_manager, std::int32_t a_soundID, std::uint32_t a_unk03)
7070
{
7171
using func_t = decltype(&PlayAfter);
72-
REL::Relocation<func_t> func{ REL_ID(66409, 67672) };
72+
static REL::Relocation<func_t> func{ REL_ID(66409, 67672) };
7373
return func(a_manager, a_soundID, a_unk03);
7474
}
7575
};

0 commit comments

Comments
 (0)