Explorar el Código

Small fix for previous commit.

DjWarmonger hace 13 años
padre
commit
e046f06421
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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))