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

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
tron 19 years ago
parent 9bbe6876ba
commit 57aa648a0e

@ -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