From 9b73b0f70e1ccf148bdcfcd56b7d3353e8c0c67e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 11 Nov 2022 10:40:59 +0100 Subject: [PATCH] Fixed broken points ordering --- src/map/ENC/mapdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/ENC/mapdata.cpp b/src/map/ENC/mapdata.cpp index f0c613f5..67d21d9a 100644 --- a/src/map/ENC/mapdata.cpp +++ b/src/map/ENC/mapdata.cpp @@ -57,7 +57,7 @@ static QMap orderMap = orderMapInit(); static uint order(uint type) { - uint st = (type>>16 == BUAARE) ? type : type && 0xFFFF; + uint st = (type>>16 == BUAARE) ? type : type & 0xFFFF; QMap::const_iterator it = orderMap.find(st); return (it == orderMap.constEnd()) ? type + 512 : it.value(); }