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

This commit is contained in:
tron 2006-03-02 14:45:35 +00:00
parent 9bbe6876ba
commit 57aa648a0e
1 changed files with 1 additions and 1 deletions

View File

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