From bf2ec962171d78ff1ec631e8e2467184845e53d0 Mon Sep 17 00:00:00 2001 From: James Johnson Date: Tue, 17 Dec 2024 15:49:42 -0800 Subject: [PATCH] patch: gas mixing deltas sign error fixed --- vice/src/multizone/migration.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vice/src/multizone/migration.c b/vice/src/multizone/migration.c index 36f08068..43b12ac1 100644 --- a/vice/src/multizone/migration.c +++ b/vice/src/multizone/migration.c @@ -244,8 +244,8 @@ extern double *migration_gas_changes_by_zone(MULTIZONE mz) { deltas[i] = 0; unsigned int j; /* changes[i][i] = 0 for all i's (see get_changes below). */ - for (j = 0u; j < (*mz.mig).n_zones; j++) deltas[i] += changes[i][j]; - for (j = 0u; j < (*mz.mig).n_zones; j++) deltas[i] -= changes[j][i]; + for (j = 0u; j < (*mz.mig).n_zones; j++) deltas[i] += changes[j][i]; + for (j = 0u; j < (*mz.mig).n_zones; j++) deltas[i] -= changes[i][j]; } return deltas;