Skip to content

Commit 3c84606

Browse files
committed
ugh
1 parent aa4ff63 commit 3c84606

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/Horrible.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ namespace horrible {
142142
}
143143

144144
// Delegate hooks to OptionManager for dynamic toggling
145-
#define HORRIBLE_DELEGATE_HOOKS(id) \
145+
#define HORRIBLE_DELEGATE_HOOKS(optID) \
146146
static void onModify(auto& self) { \
147-
horrible::delegateHooks(id, self.m_hooks); \
147+
horrible::delegateHooks(std::string(optID), self.m_hooks); \
148148
}

src/include/Horrible.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ Result<Option> OptionManager::getOptionInfo(std::string_view id) const noexcept
5656
};
5757

5858
size_t OptionManager::getDelegateCount(std::string_view id) const noexcept {
59-
for (auto const& [optionId, delegates] : m_delegates) {
60-
if (optionId == id) return delegates.size();
59+
for (auto const& [optionID, delegates] : m_delegates) {
60+
if (optionID == id) return delegates.size();
6161
};
6262

6363
return 0;

0 commit comments

Comments
 (0)