diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 23:04:04 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 23:04:04 +0100 |
commit | c2efba6907fab934a04959b9bb644cf7141cc955 (patch) | |
tree | c047244f99870e44a7a5d7e733c2857434c03765 /src/T2DLL/T2RouteCEArray.cpp | |
parent | 1eb8da84d77d0c865623421069ec38bfc7b0d461 (diff) | |
download | t2win-c2efba6907fab934a04959b9bb644cf7141cc955.tar.gz t2win-c2efba6907fab934a04959b9bb644cf7141cc955.zip |
matched T2DLL as well as i can
Diffstat (limited to '')
-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 { |