Skip to content

Commit

Permalink
renderer: Fix reading binary numbers in blendmask parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Aug 6, 2024
1 parent 90de3a3 commit f4ff6cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libopenage/renderer/resources/parser/parse_blendmask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ blending_mask parse_mask(const std::vector<std::string> &args) {
if (args[0].starts_with("0b")) {
// discard prefix because std::stoul doesn't understand binary prefixes
std::string strip = args[0].substr(2, args[2].size() - 1);
dir = std::stoul(args[0], nullptr, 2);
dir = std::stoul(strip, nullptr, 2);
}
else {
dir = std::stoul(args[0]);
Expand Down

0 comments on commit f4ff6cd

Please sign in to comment.