[*] Missing explicit AuConstReference

This commit is contained in:
Reece Wilson 2024-03-03 22:09:19 +00:00
parent 13b61f166c
commit bf398be94e

View File

@ -748,7 +748,7 @@ namespace Aurora::IO
if (pItem->IsRunOnTick())
{
if (!AuTryInsert(this->items.onTickReceivers, item))
if (!AuTryInsert(this->items.onTickReceivers, AuConstReference(item)))
{
SysPushErrorMem();
return {};
@ -757,7 +757,7 @@ namespace Aurora::IO
if (pItem->IsRunOnOtherTick())
{
if (!AuTryInsert(this->items.onOtherReceivers, item))
if (!AuTryInsert(this->items.onOtherReceivers, AuConstReference(item)))
{
SysPushErrorMem();
return {};
@ -803,7 +803,7 @@ namespace Aurora::IO
SysPushErrorIO("midframe recommit");
}
if (!AuTryInsert(this->items.registeredIO, item))
if (!AuTryInsert(this->items.registeredIO, AuConstReference(item)))
{
SysPushErrorMem();
SysAssert(this->ToQueue()->SourceRemove(src));