From: Stephen Seo Date: Mon, 14 Mar 2016 11:05:49 +0000 (+0900) Subject: Fix to EC::Manager::cleanup X-Git-Tag: 1.0~105 X-Git-Url: https://git.seodisparate.com/gitweb?a=commitdiff_plain;h=bfac16072c2bf5c2572f10643e4b0a63c0454200;p=EntityComponentMetaSystem Fix to EC::Manager::cleanup --- diff --git a/src/EC/Manager.hpp b/src/EC/Manager.hpp index 0f8a05a..b4b3907 100644 --- a/src/EC/Manager.hpp +++ b/src/EC/Manager.hpp @@ -129,12 +129,12 @@ namespace EC { while(!std::get(entities[rhs])) { - --rhs; if(rhs == 0) { currentSize = 0; return; } + --rhs; } if(lhs >= rhs) {