mirror of
https://github.com/magefree/mage.git
synced 2025-12-26 05:22:02 -08:00
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) {
|
private static void checkAndPlayClip(MageClip mageClip) {
|
||||||
try {
|
try {
|
||||||
if (mageClip != null) {
|
if (mageClip != null && mageClip.getClip() != null) {
|
||||||
boolean playSound = false;
|
boolean playSound = false;
|
||||||
switch (mageClip.getAudioGroup()) {
|
switch (mageClip.getAudioGroup()) {
|
||||||
case GameSounds:
|
case GameSounds:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue