1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Propper error checking

This commit is contained in:
Martin Tůma 2021-02-07 11:53:10 +01:00
parent 065d52d98b
commit 145a46686e

View File

@ -105,7 +105,7 @@ IMG::IMG(const QString &fileName) : _fileName(fileName)
: tile->addFile(this, tt);
CHECK(subFile);
file.seek(offset + 0x20);
CHECK(file.seek(offset + 0x20));
for (int i = 0; i < 240; i++) {
CHECK(readValue(file, block));
if (block == 0xFFFF)
@ -122,7 +122,7 @@ IMG::IMG(const QString &fileName) : _fileName(fileName)
typ = _typ;
if (typ) {
file.seek(offset + 0x20);
CHECK(file.seek(offset + 0x20));
for (int i = 0; i < 240; i++) {
CHECK(readValue(file, block));
if (block == 0xFFFF)