alexvins %!s(int64=13) %!d(string=hai) anos
pai
achega
9b106bb0f7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      AI/VCAI/VCAI.cpp

+ 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;