(svn r3733) Fix a bug in r3719, which caused a crash when the default value for a SLE_VAR_CHAR setting was used

pull/155/head
tron 19 years ago
parent d1a6223365
commit 8cf4fe9cdf

@ -643,7 +643,7 @@ static void ini_load_settings(IniFile *ini, const SettingDesc *sd, const char *g
case SLE_VAR_STRQ:
if (p != NULL) ttd_strlcpy((char*)ptr, p, sld->length);
break;
case SLE_VAR_CHAR: *(char*)ptr = *(char*)p; break;
case SLE_VAR_CHAR: *(char*)ptr = (char)(unsigned long)p; break;
default: NOT_REACHED(); break;
}
break;

Loading…
Cancel
Save