From 78b1785e7da581e9e166f39e7865caa597c23d69 Mon Sep 17 00:00:00 2001 From: dreamstalker Date: Sat, 9 May 2015 13:51:44 +0400 Subject: [PATCH] Fixed #2: NPE in CPlayingEngExtInterceptor::setCurrentTm() --- rehlds/testsuite/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rehlds/testsuite/player.cpp b/rehlds/testsuite/player.cpp index 5f0191c..52defaf 100644 --- a/rehlds/testsuite/player.cpp +++ b/rehlds/testsuite/player.cpp @@ -527,7 +527,7 @@ void CPlayingEngExtInterceptor::setCurrentHostent(hostent_data_t* data) { } void CPlayingEngExtInterceptor::setCurrentTm(struct tm* t) { - memcpy(&m_CurrentTm, 0, sizeof(m_CurrentTm)); + memcpy(&m_CurrentTm, t, sizeof(m_CurrentTm)); } void CPlayingEngExtInterceptor::SteamAPI_SetBreakpadAppID(uint32 unAppID) {