Missing early out if no contract exists
Signed-off-by: lsemp3d <58790905+lsemp3d@users.noreply.github.com>
This commit is contained in:
@@ -22,10 +22,11 @@ namespace ScriptCanvas
|
||||
AZStd::string failedContract;
|
||||
AZStd::all_of(firstSlot.GetContracts().begin(), firstSlot.GetContracts().end(), [&firstSlot, &secondSlot, &outcome](const AZStd::unique_ptr<Contract>& contract)
|
||||
{
|
||||
if (!contract)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!contract)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
outcome = contract->Evaluate(firstSlot, secondSlot);
|
||||
if (outcome.IsSuccess())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user