From 3c719769724cc32faff32f8bb4c5cc0cecc3f831 Mon Sep 17 00:00:00 2001
From: Collin Smith <collinsmith70@gmail.com>
Date: Mon, 1 Apr 2019 03:37:27 -0700
Subject: [PATCH] Fixed issue where blocked audio que played when no item was
 held

---
 core/src/com/riiablo/panel/ItemGrid.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/src/com/riiablo/panel/ItemGrid.java b/core/src/com/riiablo/panel/ItemGrid.java
index a44d40b9..95ef087a 100644
--- a/core/src/com/riiablo/panel/ItemGrid.java
+++ b/core/src/com/riiablo/panel/ItemGrid.java
@@ -81,13 +81,13 @@ public class ItemGrid extends Group {
       public void clicked(InputEvent event, float x, float y) {
         if (event.isHandled()) return;
         ItemGrid.this.mouseMoved();
+        Item cursor = Riiablo.cursor.getItem();
         if (blocked) {
-          Riiablo.audio.play("sorceress_impossible_1", false);
+          if (cursor != null) Riiablo.audio.play("sorceress_impossible_1", false);
           event.handle();
           return;
         }
 
-        Item cursor = Riiablo.cursor.getItem();
         if (cursor != null) {
           Riiablo.audio.play(cursor.getDropSound(), true);
           if (swap != null) {