Commit 68c6f370 authored by nanahira's avatar nanahira

fix

parent 462fa287
......@@ -82,7 +82,7 @@ void Replay::WriteData(const void* data, int length, bool flush) {
return;
if (length < 0 || (int)(pwrite - replay_data) + length > MAX_REPLAY_SIZE)
return;
std::memcpy(pdata, data, length);
std::memcpy(pwrite, data, length);
pwrite += length;
#ifdef YGOPRO_SERVER_MODE
if(!(replay_mode & REPLAY_MODE_SAVE_IN_SERVER)) return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment