Commit 633adaba authored by nanahira's avatar nanahira Committed by GitHub

change again

parent 26ed93cc
...@@ -124,7 +124,7 @@ bool Replay::OpenReplay(const wchar_t* name) { ...@@ -124,7 +124,7 @@ bool Replay::OpenReplay(const wchar_t* name) {
std::fclose(rfp); std::fclose(rfp);
return false; return false;
} }
if (pheader.base.id == REPLAY_ID_YRP2 && std::fread(&pheader + sizeof pheader.base, sizeof pheader - sizeof pheader.base, 1, rfp) < 1) { if (pheader.base.id == REPLAY_ID_YRP2 && std::fread((uint8_t*)(&pheader) + sizeof pheader.base, sizeof pheader - sizeof pheader.base, 1, rfp) < 1) {
std::fclose(rfp); std::fclose(rfp);
return false; return false;
} }
......
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