Skip to content

Commit 5304c30

Browse files
committed
fix: fix dead endless loop
1 parent 766873a commit 5304c30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/legacy/legacyapi/command/DynamicCommand.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ DynamicCommand::preSetup(CommandRegistry& registry, std::unique_ptr<class Dynami
489489
std::unordered_map<std::string_view, std::pair<size_t, size_t>> convertedEnumRanges;
490490
for (auto& [desc, range] : commandInstance->enumRanges) {
491491
std::string fixedName = desc.data();
492-
while (!ll::command::CommandRegistrar::getInstance().hasEnum(fixedName)) {
492+
while (ll::command::CommandRegistrar::getInstance().hasEnum(fixedName)) {
493493
fixedName.append("_");
494494
}
495495
std::string_view fixedView = desc;

0 commit comments

Comments
 (0)