Null check in Sound handler in case of partial initializations.

This commit is contained in:
Florian Nücke 2015-10-06 22:01:17 +02:00
parent 816ab0c542
commit cbfa615070

View File

@ -53,7 +53,7 @@ object Sound {
// Set in init event.
var manager: SoundManager = _
def soundSystem = manager.sndSystem
def soundSystem = if (manager != null) manager.sndSystem else null
private def updateVolume() {
val volume =