2
0
alexvins 13 жил өмнө
parent
commit
9b106bb0f7

+ 1 - 1
AI/VCAI/VCAI.cpp

@@ -437,7 +437,7 @@ ui64 evaluateDanger(const CGObjectInstance *obj)
 		return fh->estimateBankDanger (VLC->objh->bankObjToIndex(obj));
 		return fh->estimateBankDanger (VLC->objh->bankObjToIndex(obj));
 	case Obj::PYRAMID:
 	case Obj::PYRAMID:
 		{
 		{
-		    if(obj.subID == 0)
+		    if(obj->subID == 0)
 				return fh->estimateBankDanger (VLC->objh->bankObjToIndex(obj));
 				return fh->estimateBankDanger (VLC->objh->bankObjToIndex(obj));
 			else
 			else
 				return 0;
 				return 0;