1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 17:10:36 +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++) {
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;