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