From 5bc0294158b98e879e1e64a37d69722d45e121dc Mon Sep 17 00:00:00 2001 From: Evan Hemsley Date: Sun, 22 Mar 2020 14:24:59 -0700 Subject: [PATCH] buhhhh --- encompass-cs/Engine.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/encompass-cs/Engine.cs b/encompass-cs/Engine.cs index b0aa6e5..cefb2ed 100644 --- a/encompass-cs/Engine.cs +++ b/encompass-cs/Engine.cs @@ -575,10 +575,10 @@ namespace Encompass /// /// Thrown when the Engine does not declare that it Receives the specified Message Type. /// - protected TMessage ReadMessage() where TMessage : struct, IMessage + protected ref readonly TMessage ReadMessage() where TMessage : struct, IMessage { CheckMessageRead(); - return _messageManager.First(); + return ref _messageManager.First(); } ///