X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=main.c;h=838a26d3cc64301ae860966a68968906f1e36cb3;hp=916a95e01ee52833b95fe029ab0fcb06effbfa04;hb=6a60368a1b674083f27f0bdfacf85c2dbe4c0218;hpb=d35d953a91c86521e7d23814385b8762bd57baff diff --git a/main.c b/main.c index 916a95e..838a26d 100644 --- a/main.c +++ b/main.c @@ -536,7 +536,7 @@ int main(int argc, char **argv) { exit(1); } operators_free = true; - newops = mem_a(sizeof(operators[0]) * operator_count); + newops = (oper_info*)mem_a(sizeof(operators[0]) * operator_count); memcpy(newops, operators, sizeof(operators[0]) * operator_count); memcpy(&newops[operator_count-2], &operators[operator_count-1], sizeof(newops[0])); memcpy(&newops[operator_count-1], &operators[operator_count-2], sizeof(newops[0])); @@ -566,7 +566,7 @@ int main(int argc, char **argv) { } } else { - /* TODO: stdout without stdout .. */ + outfile = con_default_out(); } }