aboutsummaryrefslogtreecommitdiff
path: root/graphics/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/font.cpp')
-rw-r--r--graphics/font.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/font.cpp b/graphics/font.cpp
index f896b3c94e..1c958f3c3c 100644
--- a/graphics/font.cpp
+++ b/graphics/font.cpp
@@ -649,7 +649,7 @@ bool NewFont::cacheFontData(const NewFont &font, const Common::String &filename)
cacheFile.writeByte(0);
}
- return !cacheFile.ioFailed();
+ return !cacheFile.err();
}
NewFont *NewFont::loadFromCache(Common::SeekableReadStream &stream) {