Initialize corner case GC variables before they're passed to Pawn.

This commit is contained in:
Kyle Sanderson
2016-10-15 15:02:48 -07:00
parent d1a0d8921f
commit d1f183a259
+2 -1
View File
@@ -95,6 +95,7 @@ bool SteamWorksGCHooks::IsMessageAvailable(uint32_t *pcubMsgSize)
uint32_t shill;
if (!pcubMsgSize)
{
shill = 0;
SH_CALL(GetSteamGCPointer(), &ISteamGameCoordinator::IsMessageAvailable)(&shill);
pcubMsgSize = &shill;
}
@@ -112,7 +113,7 @@ EGCResults SteamWorksGCHooks::RetrieveMessage(uint32 *punMsgType, void *pubDest,
}
/* Don't trust a bitch, except for 2GD. https://www.youtube.com/watch?v=MgePh_YJgrc */
cell_t Result;
cell_t Result = k_EGCResultOK;
EGCResults res = SH_CALL(GetSteamGCPointer(), &ISteamGameCoordinator::RetrieveMessage)(punMsgType, pubDest, cubDest, pcubMsgSize);
if (punMsgType)
this->pGCRetMsg->PushCell(*punMsgType);