fixes and such
This commit is contained in:
parent
fe784681fc
commit
4266b1f83f
|
|
@ -5,5 +5,7 @@ set(LUAU_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||||
add_subdirectory(${DEPENDENCIES_DIR}/Luau ${CMAKE_BINARY_DIR}/Dependencies/Luau)
|
add_subdirectory(${DEPENDENCIES_DIR}/Luau ${CMAKE_BINARY_DIR}/Dependencies/Luau)
|
||||||
|
|
||||||
# RNR
|
# RNR
|
||||||
|
add_link_options(-static)
|
||||||
|
|
||||||
add_subdirectory(Engine)
|
add_subdirectory(Engine)
|
||||||
add_subdirectory(Client)
|
add_subdirectory(Client)
|
||||||
|
|
@ -114,12 +114,12 @@ namespace RNR
|
||||||
char error_text[255];
|
char error_text[255];
|
||||||
if (this == newParent)
|
if (this == newParent)
|
||||||
{
|
{
|
||||||
snprintf(error_text, 255, "Attempt to set %s as its own parent", m_name);
|
snprintf(error_text, 255, "Attempt to set %s as its own parent", m_name.c_str());
|
||||||
throw std::runtime_error(error_text);
|
throw std::runtime_error(error_text);
|
||||||
}
|
}
|
||||||
if (isAncestorOf(newParent))
|
if (isAncestorOf(newParent))
|
||||||
{
|
{
|
||||||
snprintf(error_text, 255, "Attempt to set parent of %s to %s results in circular reference", newParent->getName(), m_name);
|
snprintf(error_text, 255, "Attempt to set parent of %s to %s results in circular reference", newParent->getName().c_str(), m_name.c_str());
|
||||||
throw std::runtime_error(error_text);
|
throw std::runtime_error(error_text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue