Skip to content

Commit

Permalink
Don't iterate temporary (?) values for playlists when getting them
Browse files Browse the repository at this point in the history
this pushes a pointer which appears valid but is apparently not when you check it later
  • Loading branch information
poco0317 committed Aug 1, 2020
1 parent e6efd1b commit 381ce6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Etterna/Singletons/SongManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ class LunaSongManager : public Luna<SongManager>
{
auto idx = 1;
lua_newtable(L);
for (auto pl : p->GetPlaylists()) {
for (auto& pl : p->GetPlaylists()) {
pl.second.PushSelf(L);
lua_rawseti(L, -2, idx);
++idx;
Expand Down

0 comments on commit 381ce6c

Please sign in to comment.