mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-03-25 06:10:16 -04:00
null check on daSong for difficultyStars
This commit is contained in:
parent
5dbed6d4dd
commit
bf11071349
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue