diff options
Diffstat (limited to 'src/T2DLL/T2MatterArray.cpp')
-rw-r--r-- | src/T2DLL/T2MatterArray.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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++) { |