Updated some error messages
Thanks to Shade "Hawk eye" Master Former-commit-id: fb18a5aaa9d368ebec271c9016d4058089cefcf5
This commit is contained in:
parent
6b2690ef30
commit
677536c4b2
|
|
@ -359,7 +359,7 @@ void NzNode::SetParent(const NzNode* node, bool keepDerived)
|
||||||
#if NAZARA_UTILITY_SAFE
|
#if NAZARA_UTILITY_SAFE
|
||||||
if (node == this)
|
if (node == this)
|
||||||
{
|
{
|
||||||
NazaraError("A node can be it's own parent");
|
NazaraError("A node cannot be it's own parent");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -511,7 +511,7 @@ void NzNode::AddChild(NzNode* node) const
|
||||||
#ifdef NAZARA_DEBUG
|
#ifdef NAZARA_DEBUG
|
||||||
if (std::find(m_childs.begin(), m_childs.end(), node) != m_childs.end())
|
if (std::find(m_childs.begin(), m_childs.end(), node) != m_childs.end())
|
||||||
{
|
{
|
||||||
NazaraWarning("Is already a child");
|
NazaraWarning("Child node is already a child of parent node");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue