summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-11 12:20:41 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-11 12:20:41 +0200
commit1c0c0a046842c0b937a07e5a957950faf54611af (patch)
tree48fddce3e1222441b92614f0026b92138b548485
parentMerge branch 'master' of https://github.com/Nick007J/re3 (diff)
downloadre3-1c0c0a046842c0b937a07e5a957950faf54611af.tar
re3-1c0c0a046842c0b937a07e5a957950faf54611af.tar.gz
re3-1c0c0a046842c0b937a07e5a957950faf54611af.tar.bz2
re3-1c0c0a046842c0b937a07e5a957950faf54611af.tar.lz
re3-1c0c0a046842c0b937a07e5a957950faf54611af.tar.xz
re3-1c0c0a046842c0b937a07e5a957950faf54611af.tar.zst
re3-1c0c0a046842c0b937a07e5a957950faf54611af.zip
-rw-r--r--src/control/Record.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/control/Record.cpp b/src/control/Record.cpp
index e858bc1d..aead1720 100644
--- a/src/control/Record.cpp
+++ b/src/control/Record.cpp
@@ -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);