From 1eb8da84d77d0c865623421069ec38bfc7b0d461 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 03:41:47 +0100 Subject: game actually works now --- src/T2DLL/T2EquipPtrList.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/T2DLL/T2EquipPtrList.cpp') 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++; } -- cgit v1.2.3