cfg/cfg: Also call savecfgf() on cfgSaveInt

This commit is contained in:
Jan Holthuis 2015-08-24 14:48:01 +02:00
parent 42977f8284
commit d0c639eb7c
1 changed files with 5 additions and 1 deletions

View File

@ -141,7 +141,11 @@ string cfgLoadStr(const wchar * Section, const wchar * Key, const wchar* Defaul
//These are helpers , mainly :)
void cfgSaveInt(const wchar * Section, const wchar * Key, s32 Int)
{
return cfgdb.set_int(string(Section), string(Key), Int);
cfgdb.set_int(string(Section), string(Key), Int);
if(save_config)
{
savecfgf();
}
}
s32 cfgLoadInt(const wchar * Section, const wchar * Key,s32 Default)