Skip to content

Commit 36d6597

Browse files
committed
fixed MAX_HANDLE_LIMIT
1 parent 6d37ffa commit 36d6597

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Addictol/Source/Modules/AdModuleReferenceHandleLimitWarning.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Addictol
1414
// https://www.nexusmods.com/fallout4/mods/91141?tab=files
1515

1616
// data
17-
static inline constexpr uint32_t MAX_HANDLE_LIMIT = 0x100000;
17+
static inline constexpr uint32_t MAX_HANDLE_LIMIT = 1 << 21; // 21 bits for handle, 5 for age, 1 for active = 26 bit test
1818
static const std::string WarningMessage_ReferenceHandleLimitExceeded = "Addictol::ReferenceHandleLimitWarning: "
1919
"Reference Handle Limit Exceeded! This can cause CTDs. Consider trimming your load order for your next save.";
2020
static const std::string WarningMessage_ReferenceHandleLimitAlmostExceeded = "Addictol::ReferenceHandleLimitWarning: "

0 commit comments

Comments
 (0)