Skip to content

Commit

Permalink
Merge pull request #174 from corymonroe/cory/fix.sprite.operator
Browse files Browse the repository at this point in the history
Sprite equals operator no longers check against itself
  • Loading branch information
nnarain committed Nov 18, 2018
2 parents e933200 + 02dbda4 commit f3fd679
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gameboycore/include/gameboycore/sprite.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ namespace gb

bool operator==(const Sprite& rhs)
{
return this->y == y && this->x == x && this->tile == tile && this->attr == attr && this->height == height;
return
this->y == rhs.y &&
this->x == rhs.x &&
this->tile == rhs.tile &&
this->attr == rhs.attr &&
this->height == rhs.height;
}
};
}
Expand Down

0 comments on commit f3fd679

Please sign in to comment.