From f8768a557d40e9a3278c8207c8f407c59ee29b75 Mon Sep 17 00:00:00 2001 From: Sevenfm Date: Sun, 31 Jan 2021 14:37:38 +0000 Subject: [PATCH] Minor code improvement for r8924. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8925 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Interface Items.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Tactical/Interface Items.cpp b/Tactical/Interface Items.cpp index 8020aadc..8657cb6f 100644 --- a/Tactical/Interface Items.cpp +++ b/Tactical/Interface Items.cpp @@ -5832,9 +5832,8 @@ void UpdateAttachmentTooltips(OBJECTTYPE *pObject, UINT8 ubStatusIndex) { if (Launchable[usLoop][1] == *p && AttachmentSlots[usLoopSlotID].nasAttachmentClass & Item[Launchable[usLoop][0]].nasAttachmentClass) usAttachment = Launchable[usLoop][0]; - { - cnt--, p++; - } + + cnt--, p++; } } } @@ -5861,9 +5860,8 @@ void UpdateAttachmentTooltips(OBJECTTYPE *pObject, UINT8 ubStatusIndex) { if (Attachment[usLoop][1] == *p && AttachmentSlots[usLoopSlotID].nasAttachmentClass & Item[Attachment[usLoop][0]].nasAttachmentClass) usAttachment = Attachment[usLoop][0]; - { - cnt--, p++; - } + + cnt--, p++; } }