forked from External/mage
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:
parent
a1c46da5f2
commit
deb4608c00
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue