diff --git a/src/map/bsbmap.cpp b/src/map/bsbmap.cpp index a9eab1f7..1a801cd2 100644 --- a/src/map/bsbmap.cpp +++ b/src/map/bsbmap.cpp @@ -374,8 +374,7 @@ QImage BSBMap::readImage() if (!file.open(QIODevice::ReadOnly)) return QImage(); - file.seek(_dataOffset); - if (!file.getChar(&bits)) + if (!(file.seek(_dataOffset) && file.getChar(&bits))) return QImage(); QImage img(_size, QImage::Format_Indexed8);