update another ref readonly
continuous-integration/drone/push Build is passing Details

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

View File

@ -48,9 +48,9 @@ namespace Encompass
return _messageStore.Any<TMessage>();
}
internal TMessage First<TMessage>() where TMessage : struct, IMessage
internal ref readonly TMessage First<TMessage>() where TMessage : struct, IMessage
{
return _messageStore.First<TMessage>();
return ref _messageStore.First<TMessage>();
}
internal IEnumerable<TMessage> WithEntity<TMessage>(int entityID) where TMessage : struct, IMessage, IHasEntity