diff --git a/src/engine/server/es_server.c b/src/engine/server/es_server.c index d5e8dacb4..3196f8094 100644 --- a/src/engine/server/es_server.c +++ b/src/engine/server/es_server.c @@ -1227,6 +1227,8 @@ static void con_shutdown(void *result, void *user_data) static void con_record(void *result, void *user_data) { + char filename[512]; + str_format(filename, sizeof(filename), "demos/%s.demo", console_arg_string(result, 0)); demorec_record_start(console_arg_string(result, 0), mods_net_version(), current_map, current_map_crc, "server"); }