File diff r4548:6a33e364fba5 → r4549:76b9213799ac
settings.c
Show inline comments
 
@@ -759,25 +759,25 @@ static void ini_save_settings(IniFile *i
 
			s = sdb->name;
 
			group = group_def;
 
		}
 

	
 
		item = ini_getitem(group, s, true);
 
		ptr = ini_get_variable(sld, object);
 

	
 
		if (item->value != NULL) {
 
			// check if the value is the same as the old value
 
			const void *p = string_to_val(sdb, item->value);
 

	
 
			/* The main type of a variable/setting is in bytes 8-15
 
			* The subtype (what kind of numbers do we have there) is in 0-7 */
 
			 * The subtype (what kind of numbers do we have there) is in 0-7 */
 
			switch (sdb->cmd) {
 
			case SDT_BOOLX:
 
			case SDT_NUMX:
 
			case SDT_ONEOFMANY:
 
			case SDT_MANYOFMANY:
 
				switch (GetVarMemType(sld->conv)) {
 
				case SLE_VAR_BL:
 
				case SLE_VAR_I8:
 
				case SLE_VAR_U8:
 
					if (*(byte*)ptr == (byte)(unsigned long)p) continue;
 
					break;
 
				case SLE_VAR_I16: