mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 13:07:16 +00:00
throw color parse error if wrong length
This commit is contained in:
parent
3da7e4c020
commit
a3261b21da
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user