Fix a severe bug with config saving

Thought I had fixed that long ago...
This commit is contained in:
heinrich5991 2015-08-27 12:47:13 +02:00
parent a945cca8a5
commit 7d9228f3d5

View file

@ -273,6 +273,7 @@ int CEditorMap::Save(class IStorage *pStorage, const char *pFileName)
{
int Length = str_length(m_lSettings[i].m_aCommand) + 1;
mem_copy(pNext, m_lSettings[i].m_aCommand, Length);
pNext += Length;
}
Item.m_Settings = df.AddData(Size, pSettings);
mem_free(pSettings);