diff --git a/Source/Engine/Networking/NetworkManager.cpp b/Source/Engine/Networking/NetworkManager.cpp index d0cc7382b..f54fa5d2d 100644 --- a/Source/Engine/Networking/NetworkManager.cpp +++ b/Source/Engine/Networking/NetworkManager.cpp @@ -93,10 +93,10 @@ void NetworkManager::Disconnect(const NetworkConnection& connection) NetworkDriver->Disconnect(connection); } -bool NetworkManager::PopEvent(NetworkEvent* eventPtr) +bool NetworkManager::PopEvent(NetworkEvent& eventPtr) { ASSERT(NetworkDriver != nullptr); - return NetworkDriver->PopEvent(eventPtr); + return NetworkDriver->PopEvent(&eventPtr); } NetworkMessage NetworkManager::CreateMessage() diff --git a/Source/Engine/Networking/NetworkManager.h b/Source/Engine/Networking/NetworkManager.h index ffcc48fc0..09138121e 100644 --- a/Source/Engine/Networking/NetworkManager.h +++ b/Source/Engine/Networking/NetworkManager.h @@ -18,7 +18,7 @@ public: API_FUNCTION() static void Disconnect(); API_FUNCTION() static void Disconnect(const NetworkConnection& connection); - API_FUNCTION() static bool PopEvent(NetworkEvent* eventPtr); + API_FUNCTION() static bool PopEvent(API_PARAM(out) NetworkEvent& eventPtr); API_FUNCTION() static NetworkMessage CreateMessage(); API_FUNCTION() static void RecycleMessage(const NetworkMessage& message);