more Code/Framework fixes
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -266,7 +266,7 @@ namespace AZ
|
||||
_ComponentClass::RTTI_Type().ToString<AZStd::string>().c_str(), descriptor->GetName(), _ComponentClass::RTTI_TypeName()); \
|
||||
return nullptr; \
|
||||
} \
|
||||
else if (descriptor->GetName() != _ComponentClass::RTTI_TypeName()) \
|
||||
if (descriptor->GetName() != _ComponentClass::RTTI_TypeName()) \
|
||||
{ \
|
||||
AZ_Error("Component", false, "The same component UUID (%s) / name (%s) was registered twice. This isn't allowed, " \
|
||||
"it can cause lifetime management issues / crashes.\nThis situation can happen by declaring a component " \
|
||||
|
||||
@@ -941,10 +941,7 @@ namespace AZ
|
||||
{
|
||||
return AZStd::shared_ptr<DestType>(ptr, castPtr);
|
||||
}
|
||||
else
|
||||
{
|
||||
return AZStd::shared_ptr<DestType>();
|
||||
}
|
||||
return AZStd::shared_ptr<DestType>();
|
||||
}
|
||||
|
||||
// RttiCast specialization for intrusive_ptr.
|
||||
|
||||
Reference in New Issue
Block a user