Commit 3146f390 authored by edo9300's avatar edo9300 Committed by GitHub

Update old_replay_mode.cpp

parent 628821ba
...@@ -221,6 +221,7 @@ namespace ygo { ...@@ -221,6 +221,7 @@ namespace ygo {
char filename[256]; char filename[256];
size_t slen = cur_replay.ReadInt16(); size_t slen = cur_replay.ReadInt16();
cur_replay.ReadData(filename, slen); cur_replay.ReadData(filename, slen);
filename[slen] = 0;
if(!preload_script(pduel, filename, slen)) if(!preload_script(pduel, filename, slen))
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