fix a core dump when failing to allocate the hunk

This commit is contained in:
Bill Currie 2002-02-19 19:24:18 +00:00
parent 301eb4b8fd
commit 9aace57b07

View file

@ -1387,7 +1387,7 @@ Host_WriteConfiguration (void)
{
VFile *f;
if (cl_writecfg->int_val && host_initialized) {
if (host_initialized && cl_writecfg->int_val) {
char *path = va ("%s/config.cfg", com_gamedir);
COM_CreatePath (path);