Reflect testing enum properly

This commit is contained in:
chcurran
2021-04-20 14:44:51 -07:00
parent 961f2ef113
commit fa947d84f7
4 changed files with 7 additions and 16 deletions
@@ -869,10 +869,10 @@ namespace ScriptCanvas
const bool hasResults = eventThread->HasReturnValues();
AZStd::optional<size_t> eventIndex = ebusHandling->m_node->GetEventIndex(eventName);
AZStd::optional<size_t> eventIndex = ebusHandling->m_node->GetEventIndex(nameAndEventThread.first);
if (!eventIndex)
{
AddError(nullptr, aznew Internal::ParseError(ebusHandling->m_node->GetEntityId(), AZStd::string::format("EBus handler did not return a valid index for event %s", eventName.c_str())));
AddError(nullptr, aznew Internal::ParseError(ebusHandling->m_node->GetEntityId(), AZStd::string::format("EBus handler did not return a valid index for event %s", nameAndEventThread.first.c_str())));
return;
}