Don't try to play null audio

a message is already logged when loadClip fails; this avoids showing an error
dialog over and over afterwards.
This commit is contained in:
Neil Gentleman 2015-11-07 03:34:00 -08:00
parent a1c46da5f2
commit deb4608c00

View file

@ -303,7 +303,7 @@ public class AudioManager {
private static void checkAndPlayClip(MageClip mageClip) {
try {
if (mageClip != null) {
if (mageClip != null && mageClip.getClip() != null) {
boolean playSound = false;
switch (mageClip.getAudioGroup()) {
case GameSounds: