diff options
Diffstat (limited to 'Alc/ambdec.cpp')
-rw-r--r-- | Alc/ambdec.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/ambdec.cpp b/Alc/ambdec.cpp index 088d4a85..b3978551 100644 --- a/Alc/ambdec.cpp +++ b/Alc/ambdec.cpp @@ -21,8 +21,7 @@ int readline(std::istream &f, std::string &output) while(f.good() && f.peek() == '\n') f.ignore(); - std::getline(f, output); - return !output.empty(); + return std::getline(f, output) && !output.empty(); } bool read_clipped_line(std::istream &f, std::string &buffer) |