Fix getting demo filename in csgo

This commit is contained in:
Peace-Maker
2016-04-28 15:43:38 +02:00
parent 857eb091bd
commit 30a83785bf
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -533,7 +533,11 @@ static cell_t Native_GetDemoFileName(IPluginContext *pContext, const cell_t *par
if (!hltvserver->GetDemoRecorder()->IsRecording())
return 0;
#if SOURCE_ENGINE == SE_CSGO
char *pDemoFile = (char *)hltvserver->GetDemoRecorder()->GetDemoFile() + 4;
#else
char *pDemoFile = (char *)hltvserver->GetDemoRecorder()->GetDemoFile();
#endif
if (!pDemoFile)
return 0;