mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-10 04:43:29 +07:00
Caught "null values from musicHistory.peekLast" bug
This commit is contained in:
parent
5910e52407
commit
c41fb3591a
@ -87,7 +87,7 @@ class MusicController {
|
||||
/** @return the path of the playing track or null if none playing */
|
||||
private fun currentlyPlaying(): String = when(state) {
|
||||
ControllerState.Playing, ControllerState.PlaySingle, ControllerState.Pause ->
|
||||
musicHistory.peekLast()
|
||||
musicHistory.peekLast() ?: ""
|
||||
else -> ""
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user