summaryrefslogtreecommitdiff
path: root/src/lib/player.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-04-01 21:44:06 +0100
committerCarl Hetherington <cth@carlh.net>2014-04-01 21:44:06 +0100
commit1eeba876ce09cedfa4c779bf3554372c01dc34c5 (patch)
tree3b1590b8b1e25a985a7805e28187d454df52a1a6 /src/lib/player.h
parent70b1f90c6986e36afc2af36ee127f6a3eb8653cd (diff)
Various small fixes.
Diffstat (limited to 'src/lib/player.h')
-rw-r--r--src/lib/player.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/player.h b/src/lib/player.h
index be5cbddb4..852e7243f 100644
--- a/src/lib/player.h
+++ b/src/lib/player.h
@@ -138,7 +138,7 @@ private:
{
std::list<boost::shared_ptr<Piece> > overlaps;
for (typename std::list<boost::shared_ptr<Piece> >::const_iterator i = _pieces.begin(); i != _pieces.end(); ++i) {
- if (boost::dynamic_pointer_cast<C> ((*i)->content) && (*i)->content->position() >= t && (*i)->content->end() < t) {
+ if (boost::dynamic_pointer_cast<C> ((*i)->content) && (*i)->content->position() <= t && t < (*i)->content->end()) {
overlaps.push_back (*i);
}
}