1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

fix build

This commit is contained in:
alexvins
2012-12-24 15:52:56 +00:00
parent 616cedb2f2
commit 9b106bb0f7

View File

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