Skip to content

Commit

Permalink
ATTENTION! I fixed an important logical error that occurs when openin…
Browse files Browse the repository at this point in the history
…g 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').
  • Loading branch information
intorr committed Jan 5, 2018
1 parent 846fa30 commit e218d87
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/xrCore/xr_ini.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,10 @@ void CInifile::Load(IReader* F, pcstr path, allow_include_func_t allow_include_f
//#endif

if (m_flags.test(eReadOnly))
{
if (*I.first)
insert_item(Current, I);
}
else
{
if (*I.first || *I.second
Expand Down

0 comments on commit e218d87

Please sign in to comment.