simgear/structure/commands.cxx: removed assert that fires if we don't use thread-cpu affinities.

This commit is contained in:
Julian Smith
2022-04-30 00:12:39 +01:00
parent 12c0166f92
commit 294e0b0bb7

View File

@@ -75,9 +75,6 @@ void SGCommandMgr::setImplicitRoot(SGPropertyNode *root)
void
SGCommandMgr::addCommandObject (const std::string &name, Command* command)
{
#if !defined(NDEBUG)
assert(SGThread::current() == d->_mainThreadId);
#endif
if (d->_commands.find(name) != d->_commands.end())
throw sg_exception("duplicate command name:" + name);