small optimization

This commit is contained in:
Axel Kohlmeyer
2021-09-15 15:14:52 -04:00
parent f01681eae7
commit 1fdba7280e
4 changed files with 7 additions and 7 deletions

View File

@ -174,7 +174,7 @@ void Universe::add_world(char *str)
if (part.find_first_not_of("0123456789x") != std::string::npos) valid = false;
if (valid) {
std::size_t found = part.find_first_of("x");
std::size_t found = part.find_first_of('x');
// 'x' may not be the first or last character