mirror of https://github.com/sm64pc/sm64pc.git
Fixed release only crash
This commit is contained in:
parent
4fc2b293fa
commit
d36440e949
|
@ -190,7 +190,9 @@ namespace MoonInternal {
|
|||
|
||||
for( auto &achievement : obtainedAchievements ){
|
||||
AchievementEntry* entry = new AchievementEntry();
|
||||
entry->achievement = Moon::getAchievementById(achievement);
|
||||
Achievement* a = Moon::getAchievementById(achievement);
|
||||
if(a == NULL) return;
|
||||
entry->achievement = a;
|
||||
entry->dead = true;
|
||||
entries.push_back(entry);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue