From b349e29058c7f6cd88639f267144f529cd5b370d 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 88861b4e5..8592090c6 100644 --- a/Source/controls/touch/renderers.cpp +++ b/Source/controls/touch/renderers.cpp @@ -454,7 +454,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); }