diff --git a/port-source/kam_remake/src/utils/KromUtils.pas b/port-source/kam_remake/src/utils/KromUtils.pas index a6a1e55..3f5d768 100644 --- a/port-source/kam_remake/src/utils/KromUtils.pas +++ b/port-source/kam_remake/src/utils/KromUtils.pas @@ -250,7 +250,7 @@ end; function CharInSet(C: WideChar; S: TSetOfAnsiChar): Boolean; begin - Result := (Ord(C) <= MAXBYTE) and (AnsiChar(C) in S); + Result := (Ord(C) <= High(Byte)) and (AnsiChar(C) in S); end;