Fixed release only crash

This commit is contained in:
KiritoDev 2021-06-19 17:20:48 -05:00
parent 4fc2b293fa
commit d36440e949
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}