From 7274e6ad208076cc3834b60fc5b6fb29c374159d Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 7 Nov 2017 14:42:12 +0100 Subject: [PATCH] fixed incorrect warning message when loading pics --- mapeditor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapeditor.cpp b/mapeditor.cpp index ee5801e9..a57b8714 100644 --- a/mapeditor.cpp +++ b/mapeditor.cpp @@ -1631,7 +1631,7 @@ namespace mapeditor { for(int i=0; i<3; i++) { double d; int err = fscanf(f, "%lf", &d); - if(err) printf("Warning: read error\n"); + if(err != 1) printf("Warning: read error\n"); h[i] = d; } return h;