diff --git a/source/common/engine/sc_man.h b/source/common/engine/sc_man.h index 4022964ee..6c37806a8 100644 --- a/source/common/engine/sc_man.h +++ b/source/common/engine/sc_man.h @@ -131,6 +131,11 @@ public: void UnGet(); bool Compare(const char *text); + inline bool Compare(const std::initializer_list& list) + { + for (auto c : list) if (Compare(c)) return true; + return false; + } int MatchString(const char * const *strings, size_t stride = sizeof(char*)); int MustMatchString(const char * const *strings, size_t stride = sizeof(char*)); int GetMessageLine();