summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2EquipPtrList.cpp
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-07-01 03:41:47 +0100
committerAsh Wolf <ninji@wuffs.org>2023-07-01 03:41:47 +0100
commit1eb8da84d77d0c865623421069ec38bfc7b0d461 (patch)
treef0938d2b8bd10338eedc0809acc2b8d7e6021e7d /src/T2DLL/T2EquipPtrList.cpp
parent5c6a48b2ff362a70416a6a00fda7d06e0f276f2d (diff)
downloadt2win-1eb8da84d77d0c865623421069ec38bfc7b0d461.tar.gz
t2win-1eb8da84d77d0c865623421069ec38bfc7b0d461.zip
game actually works now
Diffstat (limited to '')
-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++;
}