summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2EquipPtrList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2EquipPtrList.cpp')
-rw-r--r--src/T2DLL/T2EquipPtrList.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/T2DLL/T2EquipPtrList.cpp b/src/T2DLL/T2EquipPtrList.cpp
index 913bb51..a8b57c2 100644
--- a/src/T2DLL/T2EquipPtrList.cpp
+++ b/src/T2DLL/T2EquipPtrList.cpp
@@ -33,15 +33,15 @@ int T2EquipPtrList::GetIndex(T2Equip* equip) {
int T2EquipPtrList::GetIndex(unsigned int equipID) {
int result = 0;
LArrayIterator iterator(*this);
- BOOL found = false;
+ BOOL done = false;
int i = 1;
- T2Equip *equip;
+ T2Equip *theEquip;
- while (!found && iterator.Next(&equip)) {
- if (equip->GetEquipID() == equipID) {
+ while (!done && iterator.Next(&theEquip)) {
+ if (theEquip->GetEquipID() == equipID) {
result = i;
- found = true;
+ done = true;
} else {
i++;
}