From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2MatterArray.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/T2DLL/T2MatterArray.cpp') diff --git a/src/T2DLL/T2MatterArray.cpp b/src/T2DLL/T2MatterArray.cpp index 2dee1cc..42adf1b 100644 --- a/src/T2DLL/T2MatterArray.cpp +++ b/src/T2DLL/T2MatterArray.cpp @@ -6,12 +6,12 @@ T2MatterArray::T2MatterArray(unsigned int jobType, unsigned int validRange, unsi mJobType = jobType; mValidRange = validRange; - for (unsigned int i = 0; i < 448; i++) + for (unsigned int i = 0; i < kGroupSize; i++) mMatter[i].mMatterID = mStartID + i; } void T2MatterArray::SetValidRange(unsigned int validRange) { - if (validRange <= 448) + if (validRange <= kGroupSize) mValidRange = validRange; } @@ -24,8 +24,8 @@ T2Matter* T2MatterArray::FindUnusedMatter(unsigned int arg) { if (arg > 0) { unsigned int start = mValidRange; unsigned int end = mValidRange + arg; - if (end > 448) - end = 448; + if (end > kGroupSize) + end = kGroupSize; mValidRange = end; for (unsigned int i = start; i < mValidRange; i++) { -- cgit v1.2.3