Commit 4109aa5a authored by Chen Bill's avatar Chen Bill

update ReadData

parent 8cdaf314
......@@ -210,7 +210,8 @@ bool Replay::ReadData(void* data, size_t length) {
is_replaying = false;
return false;
}
std::memcpy(data, &replay_data[data_position], length);
if (length)
std::memcpy(data, &replay_data[data_position], length);
data_position += length;
return true;
}
......
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