diff --git a/sol/demangle.hpp b/sol/demangle.hpp index 129eb01a..963782e7 100644 --- a/sol/demangle.hpp +++ b/sol/demangle.hpp @@ -47,7 +47,7 @@ std::string demangle(const std::type_info& id) { auto found = realname.find(replacements[r]); while (found != std::string::npos) { realname.replace(found, replacements[r].size(), replacements[r+1]); - found = realname.find(replacements[r], found); + found = realname.find(replacements[r], found); } } return realname;