1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-25 05:58:30 +02: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;
}