mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 06:16:37 -04: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 */
|
/** @return the path of the playing track or null if none playing */
|
||||||
private fun currentlyPlaying(): String = when(state) {
|
private fun currentlyPlaying(): String = when(state) {
|
||||||
ControllerState.Playing, ControllerState.PlaySingle, ControllerState.Pause ->
|
ControllerState.Playing, ControllerState.PlaySingle, ControllerState.Pause ->
|
||||||
musicHistory.peekLast()
|
musicHistory.peekLast() ?: ""
|
||||||
else -> ""
|
else -> ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user