Commit 032640f9 authored by Max Kellermann's avatar Max Kellermann

queue: update moved song versions

This patch fixes a regression introduced by commit aa9ffc.
parent cf3a9ef0
...@@ -131,6 +131,7 @@ queue_move_song_to(struct queue *queue, unsigned from, unsigned to) ...@@ -131,6 +131,7 @@ queue_move_song_to(struct queue *queue, unsigned from, unsigned to)
unsigned from_id = queue->items[from].id; unsigned from_id = queue->items[from].id;
queue->items[to] = queue->items[from]; queue->items[to] = queue->items[from];
queue->items[to].version = queue->version;
queue->idToPosition[from_id] = to; queue->idToPosition[from_id] = to;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment