diff --git a/src/map/IMG/trefile.cpp b/src/map/IMG/trefile.cpp index 8659e8b7..6c194b7b 100644 --- a/src/map/IMG/trefile.cpp +++ b/src/map/IMG/trefile.cpp @@ -290,7 +290,7 @@ void TREFile::clear() int TREFile::level(int bits, bool baseMap) { if (baseMap) { - if (!_isBaseMap && _levels.first().bits > bits) + if (!_isBaseMap && _levels.at(_firstLevel).bits > bits) return -1; if (_isBaseMap && bits > _levels.last().bits) return -1;