diff options
Diffstat (limited to 'src/Queue.hxx')
-rw-r--r-- | src/Queue.hxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Queue.hxx b/src/Queue.hxx index ae9b0b829..0088e080f 100644 --- a/src/Queue.hxx +++ b/src/Queue.hxx @@ -200,16 +200,16 @@ struct queue { /** * Returns the song at the specified position. */ - Song *Get(unsigned position) const { + Song &Get(unsigned position) const { assert(position < length); - return items[position].song; + return *items[position].song; } /** * Returns the song at the specified order number. */ - Song *GetOrder(unsigned _order) const { + Song &GetOrder(unsigned _order) const { return Get(OrderToPosition(_order)); } |