Fix to EC::Manager::cleanup

This commit is contained in:
Stephen Seo 2016-03-14 20:05:49 +09:00
parent fa40fb3a66
commit bfac16072c

View file

@ -129,12 +129,12 @@ namespace EC
{ {
while(!std::get<bool>(entities[rhs])) while(!std::get<bool>(entities[rhs]))
{ {
--rhs;
if(rhs == 0) if(rhs == 0)
{ {
currentSize = 0; currentSize = 0;
return; return;
} }
--rhs;
} }
if(lhs >= rhs) if(lhs >= rhs)
{ {