1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2024-12-27 23:46:45 +00:00

null check on daSong for difficultyStars

This commit is contained in:
Cameron Taylor 2024-01-14 08:48:50 -05:00
parent 5dbed6d4dd
commit bf11071349

View file

@ -995,7 +995,7 @@ class FreeplayState extends MusicBeatSubState
}
// Set the difficulty star count on the right.
difficultyStars.difficulty = daSong.songRating;
difficultyStars.difficulty = daSong?.songRating ?? difficultyStars.difficulty; // yay haxe 4.3
}
// Clears the cache of songs, frees up memory, they' ll have to be loaded in later tho function clearDaCache(actualSongTho:String)