diff options
Diffstat (limited to 'engines/sword25/gfx/image/swimage.cpp')
-rw-r--r-- | engines/sword25/gfx/image/swimage.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sword25/gfx/image/swimage.cpp b/engines/sword25/gfx/image/swimage.cpp index f0a8899bb6..84aa35b0f4 100644 --- a/engines/sword25/gfx/image/swimage.cpp +++ b/engines/sword25/gfx/image/swimage.cpp @@ -53,7 +53,8 @@ SWImage::SWImage(const Common::String &filename, bool &result) : // Datei laden byte *pFileData; uint fileSize; - if (!(pFileData = (byte *)pPackage->getFile(filename, &fileSize))) { + pFileData = pPackage->getFile(filename, &fileSize); + if (!pFileData) { BS_LOG_ERRORLN("File \"%s\" could not be loaded.", filename.c_str()); return; } |