From: Ketmar Dark Date: Fri, 25 Aug 2017 13:29:40 +0000 (+0300) Subject: loadgame: set correct panel enabled state X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=295fc5575016aa0e98b95cca98618a80c6bff261;p=d2df-sdl.git loadgame: set correct panel enabled state --- 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;