X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-editor.git;a=blobdiff_plain;f=src%2Feditor%2Ff_main.pas;h=5624e6a3def924542f32448cd3f59d6138b67cef;hp=32c13a2751b0f54851c87a98e2e5d105c10073ee;hb=5fd28f40b978042653b18006bd33ff5c93152518;hpb=c31a0cde6506576625aab584c2c45aac9168f2dd diff --git a/src/editor/f_main.pas b/src/editor/f_main.pas index 32c13a2..5624e6a 100644 --- a/src/editor/f_main.pas +++ b/src/editor/f_main.pas @@ -6178,7 +6178,7 @@ begin if MessageBox(0, PChar(Format(_lc[I_MSG_DELETE_MAP_PROMT], [MapName, OpenDialog.FileName])), PChar(_lc[I_MSG_DELETE_MAP]), MB_ICONQUESTION or MB_YESNO or MB_DEFBUTTON2) <> mrYes then Exit; - g_DeleteResource(FileName, '', utf2win(MapName), res); + g_DeleteResource(FileName, '', MapName, res); if res <> 0 then begin MessageBox(0, PChar('Cant delete map res=' + IntToStr(res)), PChar('Map not deleted!'), MB_ICONINFORMATION or MB_OK or MB_DEFBUTTON1);