From: Ketmar Dark Date: Sun, 27 Aug 2017 16:47:49 +0000 (+0300) Subject: cosmetix X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=7d5ba44e3ea987adb8c846236613e8e5590ba750;p=d2df-sdl.git cosmetix --- 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;