From bed45e65a22c442032c5432fd8a7b97071246290 Mon Sep 17 00:00:00 2001 From: victor Date: Wed, 29 Sep 1999 11:41:34 +0000 Subject: [PATCH] Fixing a little bug in the random generator. Variable size was used instead of _size, which is the parameter the method gets --- eo/src/eo1d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eo/src/eo1d.h b/eo/src/eo1d.h index 956d8a6fd..de33bf055 100644 --- a/eo/src/eo1d.h +++ b/eo/src/eo1d.h @@ -175,7 +175,7 @@ template< class T, class fitnessT> eo1d::eo1d( unsigned _size, eoRnd& _rndGen, const string& _ID ) :EO ( _ID ) { - for ( unsigned i = 0; i < size; i ++ ) { + for ( unsigned i = 0; i < _size; i ++ ) { insertGene( i, _rndGen() ); } };