queue: update moved song versions

This patch fixes a regression introduced by commit aa9ffc.
This commit is contained in:
Max Kellermann 2009-01-23 16:17:16 +01:00
parent cf3a9ef065
commit 032640f9e5

View File

@ -131,6 +131,7 @@ queue_move_song_to(struct queue *queue, unsigned from, unsigned to)
unsigned from_id = queue->items[from].id;
queue->items[to] = queue->items[from];
queue->items[to].version = queue->version;
queue->idToPosition[from_id] = to;
}