1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-22 17:49:43 +01:00

Don't use std::count() in Game::crewmates()

The less STL usage, the better.
This commit is contained in:
Misa 2020-04-09 16:17:52 -07:00 committed by Ethan Lee
parent 3774ec390c
commit d4034661e2

View file

@ -7654,5 +7654,13 @@ int Game::trinkets()
int Game::crewmates()
{
return std::count(obj.customcollect.begin(), obj.customcollect.end(), true);
int temp = 0;
for (size_t i = 0; i < obj.customcollect.size(); i++)
{
if (obj.customcollect[i])
{
temp++;
}
}
return temp;
}