mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-24 18:37:39 +00:00
throw color parse error if wrong length
This commit is contained in:
2
util.cpp
2
util.cpp
@@ -613,7 +613,7 @@ color_t exp_parser::parsecolor(int prio) {
|
|||||||
if(qty == 0) throw hr_parse_exception("color parse error");
|
if(qty == 0) throw hr_parse_exception("color parse error");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
return res;
|
throw hr_parse_exception("color parse error");
|
||||||
}
|
}
|
||||||
|
|
||||||
EX ld parseld(const string& s) {
|
EX ld parseld(const string& s) {
|
||||||
|
|||||||
Reference in New Issue
Block a user