mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-26 03:15:40 +00:00
fixed malloc/new
This commit is contained in:
parent
1ecb498458
commit
1c0c0a0468
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ void CRecordDataForGame::Init(void)
|
|||
RecordingState = STATE_PLAYBACK;
|
||||
}
|
||||
if (RecordingState == STATE_PLAYBACK) {
|
||||
pDataBufferPointer = (uint8*)malloc(MEMORY_FOR_GAME_RECORD);
|
||||
pDataBufferPointer = new uint8[MEMORY_FOR_GAME_RECORD];
|
||||
pDataBuffer = pDataBufferPointer;
|
||||
pDataBuffer[CFileMgr::Read(FId, (char*)pDataBufferPointer, MEMORY_FOR_GAME_RECORD) + 8] = -1;
|
||||
CFileMgr::CloseFile(FId);
|
||||
|
|
Loading…
Reference in a new issue