buhhhh
continuous-integration/drone/push Build is passing Details

pull/3/head
Evan Hemsley 2020-03-22 14:24:59 -07:00
parent a00735650a
commit 5bc0294158
1 changed files with 2 additions and 2 deletions

View File

@ -575,10 +575,10 @@ namespace Encompass
/// <exception cref="Encompass.Exceptions.IllegalReadException">
/// Thrown when the Engine does not declare that it Receives the specified Message Type.
/// </exception>
protected TMessage ReadMessage<TMessage>() where TMessage : struct, IMessage
protected ref readonly TMessage ReadMessage<TMessage>() where TMessage : struct, IMessage
{
CheckMessageRead<TMessage>();
return _messageManager.First<TMessage>();
return ref _messageManager.First<TMessage>();
}
/// <summary>