Fix name() lookups
This commit is contained in:
parent
d2f855e3f9
commit
ac280a6971
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user