* Adjusted the checks to one-line.
* Corrected the map-server from spitting out an error for the achievements import file.
This commit is contained in:
aleos
2017-08-08 21:12:20 -04:00
parent dcbb2df776
commit ac1cf0499a
3 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ Node Load(std::istream& input) {
Node LoadFile(const std::string& filename) {
std::ifstream fin(filename.c_str());
if (fin.bad()) {
if (!fin || fin.bad()) {
throw BadFile();
}
return Load(fin);