From 7d5ba44e3ea987adb8c846236613e8e5590ba750 Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Sun, 27 Aug 2017 19:47:49 +0300 Subject: [PATCH] cosmetix --- src/game/g_holmes_ui.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/game/g_holmes_ui.inc b/src/game/g_holmes_ui.inc index aaf304d..029b280 100644 --- a/src/game/g_holmes_ui.inc +++ b/src/game/g_holmes_ui.inc @@ -884,8 +884,11 @@ begin if (ly < 2) then ly := 2; ly := ly div 8; if (ly < 0) then ly := 0 else if (ly > High(mItems)) then ly := High(mItems); - mCurIndex := ly; - if (mChecks[ly] <> nil) then mChecks[ly]^ := not mChecks[ly]^; + if (mChecks[ly] <> nil) then + begin + mCurIndex := ly; + if (mChecks[ly] <> nil) then mChecks[ly]^ := not mChecks[ly]^; + end; end; end; end; -- 2.29.2