From 9d2694b6708c33f0eeb0537032687872e0056e4b Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 17 Dec 2006 22:59:05 +0000 Subject: [PATCH] =?utf8?q?Se=20cambia=20de=20lugar=20la=20purgaci=C3=B3n?= =?utf8?q?=20de=20teor=C3=ADas=20porque=20pod=C3=ADa=20pasar=20que=20se=20?= =?utf8?q?purge=20una=20teoria=20que=20iba=20a=20ser=20utilizada=20en=20un?= =?utf8?q?=20plan.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- trunk/src/sistemaautonomo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/sistemaautonomo.cpp b/trunk/src/sistemaautonomo.cpp index 23a33e3..bb04b5b 100644 --- a/trunk/src/sistemaautonomo.cpp +++ b/trunk/src/sistemaautonomo.cpp @@ -31,6 +31,7 @@ void CSistemaAutonomo::plan() { double p = 1.0; m_plan.clear(); + if (teorias.count() > TEORIAS_MAX) purgar_teorias(); #ifdef DEBUG std::cout << "SA: Planificando...\n"; std::cout << "SA: \tentorno:\n" << p_entorno->datos << "\n"; @@ -48,7 +49,6 @@ void CSistemaAutonomo::plan() else std::cout << "SA: curr teoria: " << **curr_theory << "\n"; #endif // DEBUG - if (teorias.count() > TEORIAS_MAX) purgar_teorias(); } //-------------------------------------------------------------------------------------------- -- 2.43.0