From 295fc5575016aa0e98b95cca98618a80c6bff261 Mon Sep 17 00:00:00 2001 From: Ketmar Dark Date: Fri, 25 Aug 2017 16:29:40 +0300 Subject: [PATCH] loadgame: set correct panel enabled state --- src/game/g_map.pas | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/game/g_map.pas b/src/game/g_map.pas index d93f0aa..681e182 100644 --- a/src/game/g_map.pas +++ b/src/game/g_map.pas @@ -2768,7 +2768,8 @@ var end; // Çàãðóæàåì ïàíåëü: panels[i].LoadState(PAMem); - panels[i].arrIdx := i; + if (panels[i].arrIdx <> i) then raise Exception.Create('g_Map_LoadState: LoadPanelArray: Wrong Panel arrIdx'); + if (panels[i].proxyId >= 0) then mapGrid.proxyEnabled[panels[i].proxyId] := panels[i].Enabled; end; end; -- 2.29.2