From a15a28a7c5ff7ed6957e9bb66a11c76356174dbc Mon Sep 17 00:00:00 2001 From: staphen Date: Mon, 6 Jun 2022 19:21:42 -0400 Subject: [PATCH] Correctly indicate when scroll can be used on virtual gamepad --- Source/controls/touch/renderers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/controls/touch/renderers.cpp b/Source/controls/touch/renderers.cpp index 21ec4728e..1d7086a6a 100644 --- a/Source/controls/touch/renderers.cpp +++ b/Source/controls/touch/renderers.cpp @@ -453,7 +453,7 @@ VirtualGamepadButtonType SecondaryActionButtonRenderer::GetButtonType() if (pcursinvitem != -1) { Item &item = GetInventoryItem(*MyPlayer, pcursinvitem); - if (!item.IsScroll() || !spelldata[item._iSpell].sTargeted) { + if (!item.IsScroll() || !TargetsMonster(item._iSpell)) { if (!item.isEquipment()) { return GetApplyButtonType(virtualPadButton->isHeld); }