From f4ff6cdf3445f9af05bde2d740d1c649d6593c2c Mon Sep 17 00:00:00 2001 From: heinezen Date: Wed, 7 Aug 2024 00:33:21 +0200 Subject: [PATCH] renderer: Fix reading binary numbers in blendmask parser. --- libopenage/renderer/resources/parser/parse_blendmask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libopenage/renderer/resources/parser/parse_blendmask.cpp b/libopenage/renderer/resources/parser/parse_blendmask.cpp index 31a46cddc4..b5b9338b72 100644 --- a/libopenage/renderer/resources/parser/parse_blendmask.cpp +++ b/libopenage/renderer/resources/parser/parse_blendmask.cpp @@ -40,7 +40,7 @@ blending_mask parse_mask(const std::vector &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]);