summaryrefslogtreecommitdiff
path: root/neural.c
diff options
context:
space:
mode:
Diffstat (limited to 'neural.c')
-rw-r--r--neural.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/neural.c b/neural.c
index 5b443d3..ff418ad 100644
--- a/neural.c
+++ b/neural.c
@@ -121,6 +121,7 @@ DoNNET(void)
NNetStruct* locnnetstruct = &global_nnetstruct;
clock_t total_time = 0;
int iterations = 0;
+ static int is_adjusted = FALSE;
/*
** Init random number generator.
@@ -144,8 +145,8 @@ DoNNET(void)
/*
** See if we need to perform self adjustment loop.
*/
- if (locnnetstruct->adjust == FALSE) {
- locnnetstruct->adjust = TRUE;
+ if (is_adjusted == FALSE) {
+ is_adjusted = TRUE;
/*
** Do self-adjustment. This involves initializing the
** # of loops and increasing the loop count until we