Fixed Eating Check
This commit is contained in:
parent
b47f463204
commit
33ec05e766
@ -60,7 +60,7 @@ int main(int argc, char* argv[])
|
||||
bool AllPhilosophersFull(PhilosopherData PhilosopherList[], int numPhilosophers)
|
||||
{
|
||||
for (int i = 0; i < numPhilosophers; i++)
|
||||
if (PhilosopherList[i].eatingCount != 2)
|
||||
if (PhilosopherList[i].eatingCount < 2)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user