1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-07-03 10:33:26 +00:00

bugfix in parsecolor

This commit is contained in:
Zeno Rogue 2024-05-27 13:09:32 +02:00
parent e5e89c4800
commit 6ca2051c96

View File

@ -610,7 +610,7 @@ EX transmatrix parsematrix(const string& s) {
EX color_t parsecolor(const string& s, bool has_alpha) {
exp_parser ep;
ep.s = s;
auto col = ep.parsecolor(has_alpha);
auto col = ep.parsecolor();
if(!has_alpha) col >>= 8;
return col;
}