From f78d52448e3042be1113a2bbc8af9221b681f3d8 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Thu, 22 Dec 2011 21:21:47 +0000 Subject: [PATCH] Fix appending and deleting rows via the subtitles object index syntax Originally committed to SVN as r6079. --- aegisub/src/auto4_lua_assfile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/src/auto4_lua_assfile.cpp b/aegisub/src/auto4_lua_assfile.cpp index 21627fcff..4036ff7bf 100644 --- a/aegisub/src/auto4_lua_assfile.cpp +++ b/aegisub/src/auto4_lua_assfile.cpp @@ -463,7 +463,7 @@ namespace Automation4 { else if (n == 0) { // append line to list lua_remove(L, 1); - lua_remove(L, 2); + lua_remove(L, 1); ObjectAppend(L); } else { @@ -479,7 +479,7 @@ namespace Automation4 { else { // delete lua_remove(L, 1); - lua_remove(L, 2); + lua_remove(L, 1); ObjectDelete(L); } }