1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 13:07:16 +00:00
This commit is contained in:
Zeno Rogue 2024-07-24 19:33:22 +02:00
parent 04098490d3
commit 998778dcc2

View File

@ -273,7 +273,7 @@ void read_unweighted(const char *fname) {
} }
void read_hubs(const string& fname) { void read_hubs(const string& fname) {
if(!(state && SS_DATA)) throw hr_exception("read_hubs with no data"); if(!(state & SS_DATA)) throw hr_exception("read_hubs with no data");
hubval.resize(isize(vdata), -1); hubval.resize(isize(vdata), -1);
fhstream f(fname, "rt"); fhstream f(fname, "rt");
if(!f.f) { printf("Failed to open hub file: %s\n", fname.c_str()); exit(1); } if(!f.f) { printf("Failed to open hub file: %s\n", fname.c_str()); exit(1); }