diff --git a/aegisub/src/auto4_lua_scriptreader.cpp b/aegisub/src/auto4_lua_scriptreader.cpp index ebf934f39..c0c8b0789 100644 --- a/aegisub/src/auto4_lua_scriptreader.cpp +++ b/aegisub/src/auto4_lua_scriptreader.cpp @@ -50,7 +50,7 @@ namespace Automation4 { conv->Convert(&in, &in_bytes, &out, &out_bytes); if (in_bytes > 0 && in != in_buf) - file.seekg(-(std::streamoff)in_bytes, std::ios_base::cur); + file->seekg(-(std::streamoff)in_bytes, std::ios_base::cur); *bytes_read = out - buf; // Skip the bom