Skip to content

Commit

Permalink
fix improper lua indexing in getplaylists
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed May 13, 2017
1 parent 6bffed9 commit aced494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SongManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1427,7 +1427,7 @@ class LunaSongManager: public Luna<SongManager>

static int GetPlaylists(T* p, lua_State *L)
{
int idx = 0;
int idx = 1;
lua_newtable(L);
FOREACHM(string, Playlist, p->allplaylists, pl) {
pl->second.PushSelf(L);
Expand Down

0 comments on commit aced494

Please sign in to comment.