From e046f06421a38ae381593172704352cabc5ed758 Mon Sep 17 00:00:00 2001 From: DjWarmonger Date: Thu, 29 Mar 2012 18:29:47 +0000 Subject: [PATCH] Small fix for previous commit. --- AI/VCAI/VCAI.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AI/VCAI/VCAI.cpp b/AI/VCAI/VCAI.cpp index 81b263fcb..453db3444 100644 --- a/AI/VCAI/VCAI.cpp +++ b/AI/VCAI/VCAI.cpp @@ -2629,7 +2629,8 @@ bool shouldVisit (const CGHeroInstance * h, const CGObjectInstance * obj) return false; } case Obj::LIBRARY_OF_ENLIGHTENMENT: - return h->level >= 12; + if (h->level < 12) + return false; } if (obj->wasVisited(h))