summaryrefslogtreecommitdiff
path: root/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings.c b/settings.c
index ed8edcace..bd4b086f2 100644
--- a/settings.c
+++ b/settings.c
@@ -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;