diff options
author | Torbjörn Andersson | 2005-05-02 05:29:50 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-05-02 05:29:50 +0000 |
commit | b56824d0cf0e559133f1649291cb1e02fc7fc47b (patch) | |
tree | 2940045e35f82e07c768263993f100f09e85cbf3 /common | |
parent | 0ab38726534bec31ed5a67dc5bccb16622612bf0 (diff) | |
download | scummvm-rg350-b56824d0cf0e559133f1649291cb1e02fc7fc47b.tar.gz scummvm-rg350-b56824d0cf0e559133f1649291cb1e02fc7fc47b.tar.bz2 scummvm-rg350-b56824d0cf0e559133f1649291cb1e02fc7fc47b.zip |
Don't assert that "domain" is valid. One of the cases where this function
is called is when parsing the command-line, and we can't really expect the
user to always type something sensible.
svn-id: r17893
Diffstat (limited to 'common')
-rw-r--r-- | common/config-manager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/config-manager.cpp b/common/config-manager.cpp index 928674f050..add32cd00e 100644 --- a/common/config-manager.cpp +++ b/common/config-manager.cpp @@ -490,8 +490,7 @@ void ConfigManager::renameGameDomain(const String &oldName, const String &newNam bool ConfigManager::hasGameDomain(const String &domain) const { assert(!domain.isEmpty()); - assert(isValidDomainName(domain)); - return _gameDomains.contains(domain); + return isValidDomainName(domain) && _gameDomains.contains(domain); } |