diff options
author | Denis Kasak | 2009-06-14 13:10:12 +0000 |
---|---|---|
committer | Denis Kasak | 2009-06-14 13:10:12 +0000 |
commit | d6ddbf7062ecd1cf06ea28d194ff3becf60a2c18 (patch) | |
tree | a39829a6aec247f81215cb38f5f6506b6dfd51d2 /engines/draci | |
parent | b8ec907ea0e6546da266067c5cd4b5b8143b5ed7 (diff) | |
download | scummvm-rg350-d6ddbf7062ecd1cf06ea28d194ff3becf60a2c18.tar.gz scummvm-rg350-d6ddbf7062ecd1cf06ea28d194ff3becf60a2c18.tar.bz2 scummvm-rg350-d6ddbf7062ecd1cf06ea28d194ff3becf60a2c18.zip |
Removed superfluous checks for NULL in DraciFont::freeFont().
svn-id: r41510
Diffstat (limited to 'engines/draci')
-rw-r--r-- | engines/draci/font.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/draci/font.cpp b/engines/draci/font.cpp index 4ef1b578db..19bcbbafbf 100644 --- a/engines/draci/font.cpp +++ b/engines/draci/font.cpp @@ -96,11 +96,8 @@ bool DraciFont::setFont(Common::String &filename) { } void DraciFont::freeFont() { - // If there is a font already loaded, free it - if (_charData) { - delete[] _charWidths; - delete[] _charData; - } + delete[] _charWidths; + delete[] _charData; } uint8 DraciFont::getCharWidth(uint8 chr) const { @@ -109,6 +106,7 @@ uint8 DraciFont::getCharWidth(uint8 chr) const { /** * @brief Draw a char to a Graphics::Surface + * * @param dst Pointer to the destination surface * @param chr Character to draw (ASCII value) * @param tx Horizontal offset on the surface |