Browse Source

Small fix for previous commit.

DjWarmonger 13 years ago
parent
commit
e046f06421
1 changed files with 2 additions and 1 deletions
  1. 2 1
      AI/VCAI/VCAI.cpp

+ 2 - 1
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))