Fix AlienQueen code, closes colobot/colobot#940
parent
806d30cc3b
commit
6b8e28c594
|
@ -38,11 +38,12 @@ int object::WaspCount()
|
|||
while ( true )
|
||||
{
|
||||
item = retobject(i++);
|
||||
if ( item == null ) return total;
|
||||
if ( item == null ) break;
|
||||
|
||||
if ( item.category == AlienWasp )
|
||||
{
|
||||
total ++;
|
||||
}
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
|
|
@ -64,11 +64,12 @@ int object::AlienCount()
|
|||
while ( true )
|
||||
{
|
||||
item = retobject(i++);
|
||||
if ( item == null ) return total;
|
||||
if ( item == null ) break;
|
||||
|
||||
if ( item.category == AlienAnt )
|
||||
{
|
||||
total ++;
|
||||
}
|
||||
}
|
||||
return total;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue