From 6e94dbf67417d09ba014b62c20aed89926e8fd2f Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 10 Feb 2019 14:58:23 +0100 Subject: [PATCH] added ignore to fscanf --- rogueviz-cvl.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rogueviz-cvl.cpp b/rogueviz-cvl.cpp index 9e6822fb..ef3a8537 100644 --- a/rogueviz-cvl.cpp +++ b/rogueviz-cvl.cpp @@ -52,26 +52,26 @@ int readArgs() { if(!f) { shift(); printf("failed to open file\n"); return 0; } int id; lineinfo l0; - fscanf(f, "%d%d%d", &id, &l0.plus_matrices, &l0.minus_matrices); + ignore(fscanf(f, "%d%d%d", &id, &l0.plus_matrices, &l0.minus_matrices)); l0.locs.push_back(location{View, viewctr}); for(int i=1; i