Fix name() lookups

This commit is contained in:
Jason Turner 2015-05-30 14:14:48 -06:00
parent d2f855e3f9
commit ac280a6971

View File

@ -93,7 +93,7 @@ namespace chaiscript
std::string name() const
{
if (m_is_undef)
if (!m_is_undef)
{
return m_type_info.name();
} else {
@ -103,7 +103,7 @@ namespace chaiscript
std::string bare_name() const
{
if (m_is_undef)
if (!m_is_undef)
{
return m_bare_type_info.name();
} else {