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

update ReadData

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