Skip to content

Commit e218d87

Browse files
committed
ATTENTION! I fixed an important logical error that occurs when opening the .ltx file when 'readOnly == false. This error occurs, for example, in the weather editor (the 'level weathers' tab remains empty, although it must be filled with the contents of the files 'game_maps_mp.ltx' and 'game_maps_single.ltx').
1 parent 846fa30 commit e218d87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/xrCore/xr_ini.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,10 @@ void CInifile::Load(IReader* F, pcstr path, allow_include_func_t allow_include_f
329329
//#endif
330330

331331
if (m_flags.test(eReadOnly))
332+
{
332333
if (*I.first)
333334
insert_item(Current, I);
335+
}
334336
else
335337
{
336338
if (*I.first || *I.second

0 commit comments

Comments
 (0)