Skip to content

Commit

Permalink
add missing continue
Browse files Browse the repository at this point in the history
  • Loading branch information
DakkJaniels authored and StephenCWills committed Sep 11, 2023
1 parent aba9d79 commit 3d3cc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/debug.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ std::string DebugCmdSpawnUniqueMonster(const std::string_view parameter)
if (!parsedArg.has_value()) {
name.append(arg);
name += ' ';
continue;
}
const int num = parsedArg.value();
if (num > 0) {
Expand Down Expand Up @@ -797,7 +798,6 @@ std::string DebugCmdSpawnMonster(const std::string_view parameter)
count = num;
break;
}

}
if (name.empty())
return "Monster name cannot be empty. Duh.";
Expand Down

0 comments on commit 3d3cc31

Please sign in to comment.