1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-05-12 12:14:08 +00:00

fixed incorrect warning message when loading pics

This commit is contained in:
Zeno Rogue 2017-11-07 14:42:12 +01:00
parent 908d581c15
commit 7274e6ad20

View File

@ -1631,7 +1631,7 @@ namespace mapeditor {
for(int i=0; i<3; i++) { for(int i=0; i<3; i++) {
double d; double d;
int err = fscanf(f, "%lf", &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; h[i] = d;
} }
return h; return h;