Skip to content

Commit

Permalink
Fix Qt5 build
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinRichards committed Dec 16, 2024
1 parent 8f16822 commit 86f65ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/advancemapparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ QList<QRgb> AdvanceMapParser::parsePalette(const QString &filepath, bool *error)
QList<QRgb> palette;
int i = 0;
while (i < in.length()) {
unsigned char red = qMin(qMax(static_cast<unsigned char>(in.at(i + 0)), 0u), 255u);
unsigned char green = qMin(qMax(static_cast<unsigned char>(in.at(i + 1)), 0u), 255u);
unsigned char blue = qMin(qMax(static_cast<unsigned char>(in.at(i + 2)), 0u), 255u);
unsigned char red = static_cast<unsigned char>(in.at(i + 0));
unsigned char green = static_cast<unsigned char>(in.at(i + 1));
unsigned char blue = static_cast<unsigned char>(in.at(i + 2));
palette.append(qRgb(red, green, blue));
i += 4;
}
Expand Down

0 comments on commit 86f65ed

Please sign in to comment.