diff options
Diffstat (limited to 'src/T2DLL/T2RouteCEArray.cpp')
-rw-r--r-- | src/T2DLL/T2RouteCEArray.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/T2DLL/T2RouteCEArray.cpp b/src/T2DLL/T2RouteCEArray.cpp index 9a2de67..537c3f0 100644 --- a/src/T2DLL/T2RouteCEArray.cpp +++ b/src/T2DLL/T2RouteCEArray.cpp @@ -19,24 +19,24 @@ void T2RouteCEArray::Insert(unsigned int a, unsigned int b) { } unsigned int T2RouteCEArray::GetSameID(T2RouteCEArray* other) { - unsigned int result = 0; + unsigned int theSameID = 0; - LArrayIterator outer(*this); - unsigned int outerItem; + LArrayIterator theLeftIterator(*this); + unsigned int theLeftReqID; - while (outer.Next(&outerItem)) { - LArrayIterator inner(*other); - unsigned int innerItem; + while (theLeftIterator.Next(&theLeftReqID)) { + LArrayIterator theRightIterator(*other); + unsigned int theRightReqID; - while (inner.Next(&innerItem)) { - if (outerItem == innerItem) { - result = outerItem; + while (theRightIterator.Next(&theRightReqID)) { + if (theLeftReqID == theRightReqID) { + theSameID = theLeftReqID; break; } } } - return result; + return theSameID; } BOOL T2RouteCEArray::HasCrossEquip() const { |