diff --git a/aegisub/src/auto4_lua_assfile.cpp b/aegisub/src/auto4_lua_assfile.cpp index 4036ff7bf..a99f2040d 100644 --- a/aegisub/src/auto4_lua_assfile.cpp +++ b/aegisub/src/auto4_lua_assfile.cpp @@ -553,7 +553,7 @@ namespace Automation4 { for (int i = 1; i <= n; i++) { lua_pushvalue(L, i); AssEntry *e = LuaToAssEntry(L); - modification_type |= modification_mask(*last_entry_ptr); + modification_type |= modification_mask(e); // Find the appropriate place to put it std::list::iterator it = lines.end();