Skip to content
This repository was archived by the owner on Oct 4, 2022. It is now read-only.

Crash fix removing math equal node between 2 crc32 datums makes lumberyard crash #453

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -40,13 +40,18 @@ namespace ScriptCanvasEditor

if (object)
{
AZ::Crc32 crcValue = (*object->GetAs<AZ::Crc32>());
const AZ::Crc32* pCrcValue = object->GetAs<AZ::Crc32>();

if(pCrcValue)
{
AZ::Crc32 crcValue = (*pCrcValue);
EditorGraphRequestBus::EventResult(retVal, GetScriptCanvasGraphEntityId(), &EditorGraphRequests::DecodeCrc, crcValue);

if (retVal.empty() && crcValue != AZ::Crc32())
{
AZ_Warning("ScriptCanvas", false, "Unknown CRC value. Cannot display cached string.");
retVal = AZStd::string::format("0x%X", crcValue);
}
}
}