summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAltoXorg <atrl101@yahoo.com>2024-04-20 17:31:38 +0800
committerLywx <kiritodev01@gmail.com>2024-04-20 10:26:01 -0600
commit159484134b83751e6a01afec404ce73632fa6d3f (patch)
tree5f442be6f37d63666912c43ea0addd1fa29d6bdc
parent1f1e3d774183a8c0fa257d3f538a4d92f2150dfd (diff)
enum hex values
-rw-r--r--src/Companion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp
index bef1667..cff2492 100644
--- a/src/Companion.cpp
+++ b/src/Companion.cpp
@@ -158,7 +158,7 @@ void Companion::ParseEnums(std::string& header) {
if(line.find("=") != std::string::npos) {
auto value = line.substr(line.find("=") + 1);
auto name = line.substr(0, line.find("="));
- enumIndex = std::stoi(value);
+ enumIndex = static_cast<int32_t>(std::stoll(value, 0, 0));
this->gEnums[enumName][enumIndex] = name;
} else {
enumIndex++;