mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-11-23 09:39:16 +01:00
fixed malloc/new
This commit is contained in:
parent
1ecb498458
commit
1c0c0a0468
@ -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 New Issue
Block a user