浏览代码

fix build

alexvins 13 年之前
父节点
当前提交
9b106bb0f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  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));
 	case Obj::PYRAMID:
 		{
-		    if(obj.subID == 0)
+		    if(obj->subID == 0)
 				return fh->estimateBankDanger (VLC->objh->bankObjToIndex(obj));
 			else
 				return 0;