Skip to content

Commit 7877fe3

Browse files
refpass the scoregoal vector to prevent gibberish output
1 parent c62e0cb commit 7877fe3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Profile.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3715,15 +3715,14 @@ class LunaProfile : public Luna<Profile>
37153715
int idx = 0;
37163716
FOREACHM(RString, vector<ScoreGoal>, p->goalmap, i) {
37173717
const RString &ck = i->first;
3718-
auto sgv = i->second;
3718+
auto &sgv = i->second;
37193719
FOREACH(ScoreGoal, sgv, sg) {
3720-
sg->PushSelf(L);
3720+
ScoreGoal &tsg = *sg;
3721+
tsg.PushSelf(L);
37213722
lua_rawseti(L, -2, idx + 1);
37223723
idx++;
3723-
}
3724-
3724+
}
37253725
}
3726-
37273726
return 1;
37283727
}
37293728

0 commit comments

Comments
 (0)