Skip to content

Commit df1ac0d

Browse files
committed
small further improvement to the progress bar
1 parent 11ef3a1 commit df1ac0d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

FlashpointSecurePlayer/ProgressManager.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,14 @@ private static void Show() {
296296
return;
297297
}
298298

299+
int len = goalsArray.Length - 1;
299300
int size = 0;
300301
double reciprocal = 1;
301302
double multiplier = 0;
302303

303304
// this MUST loop backwards
304-
for (int i = goalsArray.Length - 1; i >= 0; i--) {
305-
for (int j = goalsArray.Length - 1; j > i; j--) {
305+
for (int i = len; i >= 0; i--) {
306+
for (int j = len; j > i; j--) {
306307
size = goalsArray[j].Size;
307308

308309
if (size == 0) {

0 commit comments

Comments
 (0)