From d4cceb0859c2d7f8345104fd4aab1bb3514bdc59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 7 Feb 2022 00:59:12 +0100 Subject: [PATCH] Code cleanup --- src/map/IMG/lblfile.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/map/IMG/lblfile.cpp b/src/map/IMG/lblfile.cpp index 33247f48..62b5db9f 100644 --- a/src/map/IMG/lblfile.cpp +++ b/src/map/IMG/lblfile.cpp @@ -312,14 +312,13 @@ Label LBLFile::label(Handle &hdl, quint32 offset, bool poi, bool capitalize, if (!(_poiSize >= (offset << _poiMultiplier) && seek(hdl, _poiOffset + (offset << _poiMultiplier)) && readUInt24(hdl, poiOffset) && (poiOffset & 0x3FFFFF))) - return QString(); + return Label(); labelOffset = _offset + ((poiOffset & 0x3FFFFF) << _multiplier); } else labelOffset = _offset + (offset << _multiplier); if (labelOffset > _offset + _size) - return QString(); - + return Label(); if (!seek(hdl, labelOffset)) return Label();