diff --git a/source/Command.hpp b/source/Command.hpp index 65345538..b7cc6568 100644 --- a/source/Command.hpp +++ b/source/Command.hpp @@ -1800,9 +1800,7 @@ public: // Retrieve the argument flags const Uint8 f = m_ArgSpec[arg]; // Perform the requested check - return (f == CMDARG_ANY) || // Requires check? - (f & flag) || // Exact match? - ((f & CMDARG_GREEDY) && (flag & CMDARG_STRING)); + return (f == CMDARG_ANY) || ((f & flag) != 0x0); } /* --------------------------------------------------------------------------------------------