We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c62e0cb commit 7877fe3Copy full SHA for 7877fe3
src/Profile.cpp
@@ -3715,15 +3715,14 @@ class LunaProfile : public Luna<Profile>
3715
int idx = 0;
3716
FOREACHM(RString, vector<ScoreGoal>, p->goalmap, i) {
3717
const RString &ck = i->first;
3718
- auto sgv = i->second;
+ auto &sgv = i->second;
3719
FOREACH(ScoreGoal, sgv, sg) {
3720
- sg->PushSelf(L);
+ ScoreGoal &tsg = *sg;
3721
+ tsg.PushSelf(L);
3722
lua_rawseti(L, -2, idx + 1);
3723
idx++;
- }
3724
-
+ }
3725
}
3726
3727
return 1;
3728
3729
0 commit comments