Skip to content

Commit

Permalink
Fix empty family not matching empty entity
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Gustafsson <antag99@gmail.com>
  • Loading branch information
Anton Gustafsson committed May 15, 2015
1 parent bb42f16 commit db1286f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ashley/src/com/badlogic/ashley/core/Family.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ public int getIndex () {
public boolean matches (Entity entity) {
Bits entityComponentBits = entity.getComponentBits();

if (entityComponentBits.isEmpty()) return false;

for (int i = all.nextSetBit(0); i >= 0; i = all.nextSetBit(i + 1)) {
if (!entityComponentBits.get(i)) return false;
}
Expand Down

0 comments on commit db1286f

Please sign in to comment.